copyWith method
Creates a copy of this TimeRegion but with the given fields replaced with the new values.
Implementation
TimeRegion copyWith(
{DateTime? startTime,
DateTime? endTime,
String? text,
String? recurrenceRule,
Color? color,
bool? enablePointerInteraction,
List<DateTime>? recurrenceExceptionDates,
String? timeZone,
IconData? iconData,
TextStyle? textStyle,
List<Object>? resourceIds}) {
return TimeRegion(
startTime: startTime ?? this.startTime,
endTime: endTime ?? this.endTime,
color: color ?? this.color,
recurrenceRule: recurrenceRule ?? this.recurrenceRule,
textStyle: textStyle ?? this.textStyle,
enablePointerInteraction:
enablePointerInteraction ?? this.enablePointerInteraction,
recurrenceExceptionDates:
recurrenceExceptionDates ?? this.recurrenceExceptionDates,
text: text ?? this.text,
iconData: iconData ?? this.iconData,
timeZone: timeZone ?? this.timeZone,
resourceIds: resourceIds ?? this.resourceIds);
}