Alignment constructor Null safety

const Alignment(
  1. double x,
  2. double y
)

Creates an alignment.

The x and y arguments must not be null.

Implementation

const Alignment(this.x, this.y)
  : assert(x != null),
    assert(y != null);