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