Curve2DSample constructor Null safety

const Curve2DSample(
  1. double t,
  2. Offset value
)

Creates an object that holds a sample; used with Curve2D subclasses.

All arguments must not be null.

Implementation

const Curve2DSample(this.t, this.value) : assert(t != null), assert(value != null);