copyWith method

  1. @override
ThemeExtension<TaskStatusTheme> copyWith({
  1. Color? lateColor,
  2. Color? pendingColor,
  3. Color? doneColor,
  4. Color? uploadedColor,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
ThemeExtension<TaskStatusTheme> copyWith({Color? lateColor, Color? pendingColor, Color? doneColor, Color? uploadedColor}) {
  return TaskStatusTheme(
    lateColor: lateColor ?? this.lateColor,
    pendingColor: pendingColor ?? this.pendingColor,
    doneColor: doneColor ?? this.doneColor,
    uploadedColor: uploadedColor ?? this.uploadedColor,
  );
}