Quaternion.random constructor Null safety

Quaternion.random(
  1. Random rn
)

Constructs a quaternion with a random rotation. The random number generator rn is used to generate the random numbers for the rotation.

Implementation

factory Quaternion.random(math.Random rn) => Quaternion._()..setRandom(rn);