isIdentity method

bool isIdentity()

Whether the Vector2 is the identity vector or not

Implementation

bool isIdentity() => x == 1 && y == 1;