OrdinalSortKey constructor

const OrdinalSortKey(double order, { String name })

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

The order must be a finite number.

Implementation

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