copyWith method

WxSheetStyleResolverData copyWith({
  1. WxSheetVariant? variant,
  2. WxSheetSize? size,
  3. Color? severity,
  4. bool? hasLeading,
  5. bool? hasTrailing,
  6. bool? hasCallback,
})

Creates a copy of the data with optional modifications.

Implementation

WxSheetStyleResolverData copyWith({
  WxSheetVariant? variant,
  WxSheetSize? size,
  Color? severity,
  bool? hasLeading,
  bool? hasTrailing,
  bool? hasCallback,
}) {
  return WxSheetStyleResolverData(
    variant: variant ?? this.variant,
    size: size ?? this.size,
    severity: severity ?? this.severity,
    hasLeading: hasLeading ?? this.hasLeading,
    hasTrailing: hasTrailing ?? this.hasTrailing,
    hasCallback: hasCallback ?? this.hasCallback,
  );
}