WidgetSize enum
Enumeration of available widget sizes.
iOS WidgetKit supports three standard widget sizes:
Values
- small → const WidgetSize
-
Small widget (2x2 grid cells).
- medium → const WidgetSize
-
Medium widget (4x2 grid cells).
- large → const WidgetSize
-
Large widget (4x4 grid cells).
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
-
toValue(
) → String - Converts this WidgetSize to a string value.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromString(
String? value) → WidgetSize? - Creates a WidgetSize from a string value.
Constants
-
values
→ const List<
WidgetSize> - A constant List of the values in this enum, in order of their declaration.