Prec class

By default extensions are registered in the order they are found in the flattened form of nested array that was provided.

Individual extension values can be assigned a precedence to override this. Extensions that do not have a precedence set get the precedence of the nearest parent with a precedence, or Prec.defaultLevel if there is no such parent.

The final ordering of extensions is determined by first sorting by precedence and then by order within each precedence.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

defaultLevel(Extension ext) Extension
The default precedence, which is also used for extensions without an explicit precedence.
high(Extension ext) Extension
A higher-than-default precedence, for extensions that should come before those with default precedence.
highest(Extension ext) Extension
The highest precedence level, for extensions that should end up near the start of the precedence ordering.
low(Extension ext) Extension
A lower-than-default precedence.
lowest(Extension ext) Extension
The lowest precedence level. Meant for things that should end up near the end of the extension order.