copyWith method
AlignModifierSpec
copyWith({
- AlignmentGeometry? alignment,
- double? widthFactor,
- double? heightFactor,
override
Creates a copy of this spec with the given fields replaced by the non-null parameter values.
Implementation
@override
AlignModifierSpec copyWith({
AlignmentGeometry? alignment,
double? widthFactor,
double? heightFactor,
}) {
return AlignModifierSpec(
alignment: alignment ?? this.alignment,
widthFactor: widthFactor ?? this.widthFactor,
heightFactor: heightFactor ?? this.heightFactor,
);
}