transform property

Matrix4? get transform

Implementation

Matrix4? get transform {
  if ((_scale ?? _rotate ?? _offset) != null) {
    return Matrix4.rotationZ(_rotate ?? 0.0)
      ..scale(_scale ?? 1.0)
      ..translate(
        _offset?.dx ?? 0.0,
        _offset?.dy ?? 0.0,
      );
  }
  return null;
}