copyWith method

Style copyWith({
  1. Alignment? alignment,
  2. Dimension? width,
  3. Dimension? height,
  4. EdgeInsets? margin,
  5. EdgeInsets? padding,
  6. bool? visible,
  7. double? opacity,
  8. Decoration? backgroundDecoration,
  9. Decoration? foregroundDecoration,
  10. List<ShapeShadow>? shadows,
  11. List<ShapeShadow>? insetShadows,
  12. MorphableShapeBorder? shapeBorder,
  13. SmoothMatrix4? transform,
  14. Alignment? transformAlignment,
  15. Alignment? childAlignment,
  16. DynamicTextStyle? textStyle,
  17. TextAlign? textAlign,
  18. Gradient? shaderGradient,
  19. ImageFilter? imageFilter,
  20. ImageFilter? backdropFilter,
  21. SystemMouseCursor? mouseCursor,
})

Implementation

Style copyWith({
  Alignment? alignment,
  Dimension? width,
  Dimension? height,
  EdgeInsets? margin,
  EdgeInsets? padding,
  bool? visible,
  double? opacity,
  Decoration? backgroundDecoration,
  Decoration? 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 Style(
    alignment: alignment ?? this.alignment,
    width: width ?? this.width,
    height: height ?? this.height,
    margin: margin ?? this.margin,
    padding: padding ?? this.padding,
    visible: visible ?? this.visible,
    opacity: opacity ?? this.opacity,
    backgroundDecoration: backgroundDecoration ?? this.backgroundDecoration,
    foregroundDecoration: foregroundDecoration ?? this.foregroundDecoration,
    shadows: shadows ?? this.shadows,
    insetShadows: insetShadows ?? this.insetShadows,
    shapeBorder: shapeBorder ?? this.shapeBorder,
    transform: transform ?? this.transform,
    transformAlignment: transformAlignment ?? this.transformAlignment,
    childAlignment: childAlignment ?? this.childAlignment,
    textStyle: textStyle ?? this.textStyle,
    textAlign: textAlign ?? this.textAlign,
    shaderGradient: shaderGradient ?? this.shaderGradient,
    imageFilter: imageFilter ?? this.imageFilter,
    backdropFilter: backdropFilter ?? this.backdropFilter,
    mouseCursor: mouseCursor ?? this.mouseCursor,
  );
}