Priority class

Utility functions for managing cassowary priorities.

Priorities in cassowary expressions are internally expressed as a number between 0 and 1,000,000,000. These numbers can be created by using the Priority.create static method.

Constructors

Priority()

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 Properties

medium double
A Priority level logarithmically in the middle of strong and weak (1,000).
final
required double
The Priority level that, by convention, is the highest allowed Priority level (1,000,000,000).
final
strong double
A Priority level that is below the required level but still near it (1,000,000).
final
weak double
A Priority level that, by convention, is the lowest allowed Priority level (1).
final

Static Methods

create(double a, double b, double c) double
Computes a Priority level by combining three numbers in the range 0..1000.