copyWith method

  1. @useResult
FLineCalendarStyle copyWith({
  1. EdgeInsets? itemPadding,
  2. double? itemContentEdgeSpacing,
  3. double? itemContentSpacing,
  4. FLineCalendarItemStyle? selectedItemStyle,
  5. FLineCalendarItemStyle? selectedHoveredItemStyle,
  6. FLineCalendarItemStyle? unselectedItemStyle,
  7. FLineCalendarItemStyle? unselectedHoveredItemStyle,
})

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

Implementation

@useResult
FLineCalendarStyle copyWith({
  EdgeInsets? itemPadding,
  double? itemContentEdgeSpacing,
  double? itemContentSpacing,
  FLineCalendarItemStyle? selectedItemStyle,
  FLineCalendarItemStyle? selectedHoveredItemStyle,
  FLineCalendarItemStyle? unselectedItemStyle,
  FLineCalendarItemStyle? unselectedHoveredItemStyle,
}) =>
    FLineCalendarStyle(
      itemPadding: itemPadding ?? this.itemPadding,
      itemContentEdgeSpacing: itemContentEdgeSpacing ?? this.itemContentEdgeSpacing,
      itemContentSpacing: itemContentSpacing ?? this.itemContentSpacing,
      selectedItemStyle: selectedItemStyle ?? this.selectedItemStyle,
      selectedHoveredItemStyle: selectedHoveredItemStyle ?? this.selectedHoveredItemStyle,
      unselectedItemStyle: unselectedItemStyle ?? this.unselectedItemStyle,
      unselectedHoveredItemStyle: unselectedHoveredItemStyle ?? this.unselectedHoveredItemStyle,
    );