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.

Static Properties

medium → double

A Priority level logarithmically in the middle of strong and weak (1,000).

read-only
required → double

The Priority level that, by convention, is the highest allowed Priority level (1,000,000,000).

read-only
strong → double

A Priority level that is below the required level but still near it (1,000,000).

read-only
weak → double

A Priority level that, by convention, is the lowest allowed Priority level (1).

read-only

Static Methods

create(double a, double b, double c) → double

Computes a Priority level by combining three numbers in the range 0..1000.

Constructors

Priority()

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited