Vector2D.fromString constructor

Vector2D.fromString({
  1. required String x,
  2. required String y,
})

Implementation

factory Vector2D.fromString({
  required String x,
  required String y,
}) =>
    Vector2D(
      x: double.parse(x),
      y: double.parse(y),
    );