ViewContentMode enum

Clone of iOS native enum UIViewContentMode

Inheritance
Available extensions

Values

UNKNOWN → const ViewContentMode

Will be returned if getByValue if a non-existent was passed.

const ViewContentMode(-1)
SCALE_TO_FILL → const ViewContentMode
const ViewContentMode(0)
SCALE_ASPECT_FIT → const ViewContentMode

Contents scaled to fit with fixed aspect. remainder is transparent.

const ViewContentMode(1)
SCALE_ASPECT_FILL → const ViewContentMode

Contents scaled to fill with fixed aspect. some portion of content may be clipped.

const ViewContentMode(2)
REDRAW → const ViewContentMode

redraw on bounds change (calls -setNeedsDisplay).

const ViewContentMode(3)
CENTER → const ViewContentMode

contents remain same size. positioned adjusted.

const ViewContentMode(4)
TOP → const ViewContentMode
const ViewContentMode(5)
BOTTOM → const ViewContentMode
const ViewContentMode(6)
LEFT → const ViewContentMode
const ViewContentMode(7)
const ViewContentMode(8)
TOP_LEFT → const ViewContentMode
const ViewContentMode(9)
TOP_RIGHT → const ViewContentMode
const ViewContentMode(10)
BOTTOM_LEFT → const ViewContentMode
const ViewContentMode(11)
BOTTOM_RIGHT → const ViewContentMode
const ViewContentMode(12)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
final

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

getByValue(int? i) ViewContentMode?

Constants

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