AlignmentDirectional constructor Null safety

const AlignmentDirectional(
  1. double start,
  2. double y
)

Creates a directional alignment.

The start and y arguments must not be null.

Implementation

const AlignmentDirectional(this.start, this.y)
  : assert(start != null),
    assert(y != null);