copyWith method
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,
);
}