Vector2 constructor

Vector2([
  1. double? x,
  2. double? y
])

Implementation

Vector2([double? x, double? y]) {
  this.x = x ?? 0;
  this.y = y ?? 0;
}