copyWith method

  1. @override
FlexibleModifierSpec copyWith({
  1. int? flex,
  2. FlexFit? fit,
})
override

Creates a copy of this spec with the given fields replaced by the non-null parameter values.

Implementation

@override
FlexibleModifierSpec copyWith({int? flex, FlexFit? fit}) {
  return FlexibleModifierSpec(flex: flex ?? this.flex, fit: fit ?? this.fit);
}