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) {
  final bounds1 = Bounds._(a, b);
  final bounds2 = bounds1.extend(a);
  return bounds2.extend(b);
}