addScalar method

  1. @override
Vector2 addScalar(
  1. num s
)
override

Implementation

@override
Vector2 addScalar(num s) {
  x += s;
  y += s;

  return this;
}