copyWith method
SheetThemeData
copyWith({
- Curve? curve,
- Duration? duration,
- SheetStyle? style,
- SheetStyleByVariant? variantStyle,
- SheetStyleByVariant? dangerStyle,
- SheetStyleByVariant? warningStyle,
- SheetStyleByVariant? successStyle,
- SheetStyleByVariant? infoStyle,
override
Creates a copy of this SheetThemeData but with the given fields replaced with the new values.
Implementation
@override
SheetThemeData copyWith({
Curve? curve,
Duration? duration,
SheetStyle? style,
SheetStyleByVariant? variantStyle,
SheetStyleByVariant? dangerStyle,
SheetStyleByVariant? warningStyle,
SheetStyleByVariant? successStyle,
SheetStyleByVariant? infoStyle,
}) {
return SheetThemeData(
curve: curve ?? this.curve,
duration: duration ?? this.duration,
style: this.style.merge(style),
variantStyle: this.variantStyle.merge(variantStyle),
dangerStyle: this.dangerStyle.merge(dangerStyle),
warningStyle: this.warningStyle.merge(warningStyle),
successStyle: this.successStyle.merge(successStyle),
infoStyle: this.infoStyle.merge(infoStyle),
);
}