Matrix4.compose constructor Null safety

Matrix4.compose(
  1. Vector3 translation,
  2. Quaternion rotation,
  3. Vector3 scale
)

Constructs Matrix4 from translation, rotation and scale.

Implementation

factory Matrix4.compose(
        Vector3 translation, Quaternion rotation, Vector3 scale) =>
    Matrix4.zero()
      ..setFromTranslationRotationScale(translation, rotation, scale);