Anchor enum

Inheritance

Constructors

Anchor(String name, {required (double, double) value})
const

Values

center → const Anchor
const Anchor("center", value: (0.5, 0.5))
left → const Anchor
const Anchor("left", value: (1, 0.5))
const Anchor("right", value: (0, 0.5))
top → const Anchor
const Anchor("top", value: (0.5, 1))
bottom → const Anchor
const Anchor("bottom", value: (0.5, 0))
top_left → const Anchor
const Anchor("top-left", value: (1, 1))
top_right → const Anchor
const Anchor("top-right", value: (0, 1))
bottom_left → const Anchor
const Anchor("bottom-left", value: (1, 0))
bottom_right → const Anchor
const Anchor("bottom-right", value: (0, 0))

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → (double, double)
final

Methods

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

Operators

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

Constants

values → const List<Anchor>
A constant List of the values in this enum, in order of their declaration.