Matrix2.rotation constructor Null safety

Matrix2.rotation(
  1. double radians
)

Rotation of radians.

Implementation

factory Matrix2.rotation(double radians) =>
    Matrix2.zero()..setRotation(radians);