isIdentity property
bool
get
isIdentity
Whether this deformation is visually a no-op.
Implementation
bool get isIdentity =>
(scaleX - 1).abs() < 1e-4 &&
(scaleY - 1).abs() < 1e-4 &&
offsetX.abs() < 1e-4;