copyWith method
WxSheetStyleResolverData
copyWith({
- WxSheetVariant? variant,
- WxSheetSize? size,
- Color? severity,
- bool? hasLeading,
- bool? hasTrailing,
- 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,
);
}