copyWith method

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