OrdinalSortKey constructor

const OrdinalSortKey(
  1. double order,
  2. {String? name}
)

Creates a const semantics sort key that uses a double as its key value.

The order must be a finite number.

Implementation

const OrdinalSortKey(
  this.order, {
  super.name,
}) : assert(order > double.negativeInfinity),
     assert(order < double.infinity);