copyWith method

ScreenBox copyWith({
  1. ScreenPoint? min,
  2. ScreenPoint? max,
})

A copy of this value with the given members replaced.

Implementation

ScreenBox copyWith({ScreenPoint? min, ScreenPoint? max}) =>
    ScreenBox(min: min ?? this.min, max: max ?? this.max);