copyWith method
SheetStyle
copyWith({
- SheetVariant? variant,
- SheetSeverity? severity,
- double? width,
- double? height,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- Alignment? alignment,
- Clip? clipBehavior,
- bool? overlayDisabled,
- Color? overlayColor,
- Color? shadowColor,
- Color? surfaceTint,
- double? elevation,
- TextStyle? foregroundStyle,
- Color? foregroundColor,
- double? foregroundOpacity,
- int? foregroundAlpha,
- double? foregroundSpacing,
- bool? foregroundLoosen,
- bool? foregroundExpanded,
- CrossAxisAlignment? foregroundAlign,
- MainAxisAlignment? foregroundJustify,
- Color? backgroundColor,
- double? backgroundOpacity,
- int? backgroundAlpha,
- Color? borderColor,
- double? borderOpacity,
- int? borderAlpha,
- double? borderWidth,
- BorderRadius? borderRadius,
- BorderStyle? borderStyle,
- BoxShape? shape,
- Color? iconColor,
- double? iconOpacity,
- double? iconSize,
Creates a copy of this SheetStyle but with the given fields replaced with the new values.
Implementation
SheetStyle copyWith({
SheetVariant? variant,
SheetSeverity? severity,
double? width,
double? height,
EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
Alignment? alignment,
Clip? clipBehavior,
bool? overlayDisabled,
Color? overlayColor,
Color? shadowColor,
Color? surfaceTint,
double? elevation,
TextStyle? foregroundStyle,
Color? foregroundColor,
double? foregroundOpacity,
int? foregroundAlpha,
double? foregroundSpacing,
bool? foregroundLoosen,
bool? foregroundExpanded,
CrossAxisAlignment? foregroundAlign,
MainAxisAlignment? foregroundJustify,
Color? backgroundColor,
double? backgroundOpacity,
int? backgroundAlpha,
Color? borderColor,
double? borderOpacity,
int? borderAlpha,
double? borderWidth,
BorderRadius? borderRadius,
BorderStyle? borderStyle,
BoxShape? shape,
Color? iconColor,
double? iconOpacity,
double? iconSize,
}) {
return SheetStyle(
variant: variant ?? this.variant,
severity: severity ?? this.severity,
width: width ?? this.width,
height: height ?? this.height,
margin: margin ?? this.margin,
padding: padding ?? this.padding,
alignment: alignment ?? this.alignment,
clipBehavior: clipBehavior ?? this.clipBehavior,
overlayDisabled: overlayDisabled ?? this.overlayDisabled,
overlayColor: overlayColor ?? this.overlayColor,
shadowColor: shadowColor ?? this.shadowColor,
surfaceTint: surfaceTint ?? this.surfaceTint,
elevation: elevation ?? this.elevation,
foregroundStyle: foregroundStyle ?? this.foregroundStyle,
foregroundColor: foregroundColor ?? this.foregroundColor,
foregroundOpacity: foregroundOpacity ?? this.foregroundOpacity,
foregroundAlpha: foregroundAlpha ?? this.foregroundAlpha,
foregroundSpacing: foregroundSpacing ?? this.foregroundSpacing,
foregroundLoosen: foregroundLoosen ?? this.foregroundLoosen,
foregroundExpanded: foregroundExpanded ?? this.foregroundExpanded,
foregroundAlign: foregroundAlign ?? this.foregroundAlign,
foregroundJustify: foregroundJustify ?? this.foregroundJustify,
backgroundColor: backgroundColor ?? this.backgroundColor,
backgroundOpacity: backgroundOpacity ?? this.backgroundOpacity,
backgroundAlpha: backgroundAlpha ?? this.backgroundAlpha,
borderColor: borderColor ?? this.borderColor,
borderOpacity: borderOpacity ?? this.borderOpacity,
borderAlpha: borderAlpha ?? this.borderAlpha,
borderWidth: borderWidth ?? this.borderWidth,
borderRadius: borderRadius ?? this.borderRadius,
borderStyle: borderStyle ?? this.borderStyle,
shape: shape ?? this.shape,
iconColor: iconColor ?? this.iconColor,
iconOpacity: iconOpacity ?? this.iconOpacity,
iconSize: iconSize ?? this.iconSize,
);
}