copyWith method

  1. @override
SizedBoxModifierSpec copyWith({
  1. double? width,
  2. double? height,
})
override

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

Implementation

@override
SizedBoxModifierSpec copyWith({double? width, double? height}) {
  return SizedBoxModifierSpec(
    width: width ?? this.width,
    height: height ?? this.height,
  );
}