Point2D constructor

Point2D({
  1. double? x,
  2. double? y,
})

Implementation

factory Point2D({double? x, double? y}) =>
    Point2D._(x: x ?? 0.0, y: y ?? 0.0);