Matrix4.translation constructor Null safety

Matrix4.translation(
  1. Vector3 translation
)

Translation matrix.

Implementation

factory Matrix4.translation(Vector3 translation) => Matrix4.zero()
  ..setIdentity()
  ..setTranslation(translation);