copyWith method
Neu
copyWith({
- Color? color,
- int? depth,
- Curvature? curvature,
- Swell? swell,
- double? spread,
- Alignment? lightSource,
- NeuTextSpec? neuTextSpec,
- BorderRadius? borderRadius,
- 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,
);