AFFormFactor enum

You can override AFFunctionalTheme.deviceFormFactor to modify the meanings of these defintions.

In your code, you can use methods like AFFunctionalTheme.deviceHasFormFactor to conditionally change your UI build based on the device form factor.

Inheritance
Available extensions

Values

smallPhone → const AFFormFactor

Similar to an iPhone mini

standardPhone → const AFFormFactor

Similar to standard iPhones

largePhone → const AFFormFactor

Similar to iPhone max.

smallTablet → const AFFormFactor

Similar to 9.7" iPad

standardTablet → const AFFormFactor

Similar to standard iPad

largeTablet → const AFFormFactor

Similar to 12" ipad.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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

Constants

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