copyWith method

  1. @override
AspectRatioModifierSpec copyWith({
  1. double? aspectRatio,
})
override

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

Implementation

@override
AspectRatioModifierSpec copyWith({double? aspectRatio}) {
  return AspectRatioModifierSpec(aspectRatio ?? this.aspectRatio);
}