OrdinalSortKey constructor Null safety
Creates a const semantics sort key that uses a double as its key value.
The order must be a finite number, and must not be null.
Implementation
const OrdinalSortKey(
this.order, {
super.name,
}) : assert(order != null),
assert(order != double.nan),
assert(order > double.negativeInfinity),
assert(order < double.infinity);