Bounds<T extends num> constructor

Bounds<T extends num>(
  1. CustomPoint<T> a,
  2. CustomPoint<T> b
)

Implementation

factory Bounds(CustomPoint<T> a, CustomPoint<T> b) {
  var bounds1 = Bounds._(a, b);
  var bounds2 = bounds1.extend(a);
  return bounds2.extend(b);
}