copyWith method
ScopedStyles
copyWith({
- Alignment? alignment,
- Dimension? width,
- Dimension? height,
- EdgeInsets? margin,
- EdgeInsets? padding,
- bool? visible,
- double? opacity,
- BoxDecoration? backgroundDecoration,
- BoxDecoration? foregroundDecoration,
- List<
ShapeShadow> ? shadows, - List<
ShapeShadow> ? insetShadows, - MorphableShapeBorder? shapeBorder,
- SmoothMatrix4? transform,
- Alignment? transformAlignment,
- Alignment? childAlignment,
- DynamicTextStyle? textStyle,
- TextAlign? textAlign,
- Gradient? shaderGradient,
- ImageFilter? imageFilter,
- ImageFilter? backdropFilter,
- dynamic mouseCursor,
override
Implementation
ScopedStyles copyWith({
Alignment? alignment,
Dimension? width,
Dimension? height,
EdgeInsets? margin,
EdgeInsets? padding,
bool? visible,
double? opacity,
BoxDecoration? backgroundDecoration,
BoxDecoration? foregroundDecoration,
List<ShapeShadow>? shadows,
List<ShapeShadow>? insetShadows,
MorphableShapeBorder? shapeBorder,
SmoothMatrix4? transform,
Alignment? transformAlignment,
Alignment? childAlignment,
DynamicTextStyle? textStyle,
TextAlign? textAlign,
Gradient? shaderGradient,
ImageFilter? imageFilter,
ImageFilter? backdropFilter,
SystemMouseCursor? mouseCursor,
}) {
return ScopedStyles(
styles: styles.map((key, value) => MapEntry(
key,
value.copyWith(
alignment: alignment,
width: width,
height: height,
margin: margin,
padding: padding,
visible: visible,
opacity: opacity,
backgroundDecoration: backgroundDecoration,
foregroundDecoration: foregroundDecoration,
shadows: shadows,
insetShadows: insetShadows,
shapeBorder: shapeBorder,
transform: transform,
transformAlignment: transformAlignment,
childAlignment: childAlignment,
textStyle: textStyle,
textAlign: textAlign,
shaderGradient: shaderGradient,
imageFilter: imageFilter,
backdropFilter: backdropFilter,
mouseCursor: mouseCursor,
))));
}