isIdentity property

bool get isIdentity

Whether this transform leaves UV coordinates unchanged.

Implementation

bool get isIdentity =>
    offset.x == 0.0 &&
    offset.y == 0.0 &&
    scale.x == 1.0 &&
    scale.y == 1.0 &&
    rotation == 0.0;