Tangent constructor Null safety

const Tangent(
  1. Offset position,
  2. Offset vector
)

Creates a Tangent with the given values.

The arguments must not be null.

Implementation

const Tangent(this.position, this.vector)
  : assert(position != null),
    assert(vector != null);