copyWith method

  1. @override
FractionallySizedBoxModifierSpec copyWith({
  1. double? widthFactor,
  2. double? heightFactor,
  3. 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,
  );
}