copyWith method

Neu copyWith({
  1. Color? color,
  2. int? depth,
  3. Curvature? curvature,
  4. Swell? swell,
  5. double? spread,
  6. Alignment? lightSource,
  7. NeuTextSpec? neuTextSpec,
  8. BorderRadius? borderRadius,
  9. ShapeBorder? shape,
})

📋 Create a new Neu object that has the same properties as this one except for any optional parameters passed through this copyWith method.

Implementation

Neu copyWith({
  Color? color,
  int? depth,
  Curvature? curvature,
  Swell? swell,
  double? spread,
  Alignment? lightSource,
  NeuTextSpec? neuTextSpec,
  BorderRadius? borderRadius,
  ShapeBorder? shape,
}) =>
    Neu(
      color: color ?? this.color,
      depth: depth ?? this.depth,
      curvature: curvature ?? this.curvature,
      swell: swell ?? this.swell,
      spread: spread ?? this.spread,
      lightSource: lightSource ?? this.lightSource,
      neuTextSpec: neuTextSpec ?? this.neuTextSpec,
      borderRadius: borderRadius ?? this.borderRadius,
      shape: shape ?? this.shape,
    );