AdState enum
The loading/display state of an ad.
Use this to build UI that reacts to ad state changes, such as showing a loading indicator or disabling a button until the ad is ready.
Values
- idle → const AdState
-
Initial state; no load has been requested.
- loading → const AdState
-
The ad is currently loading.
- ready → const AdState
-
The ad is loaded and ready to be shown.
- showing → const AdState
-
The ad is currently being shown to the user.
- error → const AdState
-
The ad failed to load after all retries.
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