copyWith method

ScaleSettings copyWith({
  1. bool? enabled,
  2. double? minScale,
  3. double? maxScale,
})

Creates a copy of this but with the given fields replaced with the new values.

Implementation

ScaleSettings copyWith({
  bool? enabled,
  double? minScale,
  double? maxScale,
}) {
  return ScaleSettings(
    enabled: enabled ?? this.enabled,
    minScale: minScale ?? this.minScale,
    maxScale: maxScale ?? this.maxScale,
  );
}