copyWith method
IconSpec
copyWith({
- Color? color,
- double? size,
- double? fill,
- TextDirection? textDirection,
- double? weight,
- double? grade,
- double? opticalSize,
- List<
Shadow> ? shadows, - String? semanticLabel,
- bool? applyTextScaling,
- AnimatedData? animated,
override
Creates a copy of this spec with the given fields replaced by the non-null parameter values.
Implementation
@override
IconSpec copyWith({
Color? color,
double? size,
double? fill,
TextDirection? textDirection,
double? weight,
double? grade,
double? opticalSize,
List<Shadow>? shadows,
String? semanticLabel,
bool? applyTextScaling,
AnimatedData? animated,
}) {
return IconSpec(
color: color ?? this.color,
size: size ?? this.size,
weight: weight ?? this.weight,
grade: grade ?? this.grade,
opticalSize: opticalSize ?? this.opticalSize,
shadows: shadows ?? this.shadows,
textDirection: textDirection ?? this.textDirection,
applyTextScaling: applyTextScaling ?? this.applyTextScaling,
fill: fill ?? this.fill,
animated: animated ?? this.animated,
);
}