copyWith method

ScopedStyles copyWith({
  1. Alignment? alignment,
  2. Dimension? width,
  3. Dimension? height,
  4. EdgeInsets? margin,
  5. EdgeInsets? padding,
  6. bool? visible,
  7. double? opacity,
  8. BoxDecoration? backgroundDecoration,
  9. BoxDecoration? 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. 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,
          ))));
}