copyWith method

  1. @useResult
FDateFieldStyle copyWith({
  1. FTextFieldStyleDelta? fieldStyle,
  2. FPopoverStyleDelta? popoverStyle,
  3. FCalendarStyleDelta? calendarStyle,
})

Returns a copy of this FDateFieldStyle with the given properties replaced.

See customizing widget styles.

Parameters

Implementation

@useResult
FDateFieldStyle copyWith({
  FTextFieldStyleDelta? fieldStyle,
  FPopoverStyleDelta? popoverStyle,
  FCalendarStyleDelta? calendarStyle,
}) => .new(
  fieldStyle: fieldStyle?.call(this.fieldStyle) ?? this.fieldStyle,
  popoverStyle: popoverStyle?.call(this.popoverStyle) ?? this.popoverStyle,
  calendarStyle: calendarStyle?.call(this.calendarStyle) ?? this.calendarStyle,
);