DevicePreviewState class
Represents the current state of the device preview.
- Annotations
-
- @freezed
Constructors
-
DevicePreviewState.initialized({required List<
DeviceInfo> devices, required List<NamedLocale> locales, required DevicePreviewData data}) -
The device preview is available.
constfactory
- DevicePreviewState.initializing()
-
The device preview is currently being initialized.
constfactory
- DevicePreviewState.notInitialized()
-
The device preview has not been initialized yet.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult notInitialized(_NotInitializedDevicePreviewState value), required TResult initializing(_InitializingDevicePreviewState value), required TResult initialized(_InitializedDevicePreviewState value)}) → TResult -
inherited
-
maybeMap<
TResult extends Object?> ({TResult notInitialized(_NotInitializedDevicePreviewState value)?, TResult initializing(_InitializingDevicePreviewState value)?, TResult initialized(_InitializedDevicePreviewState value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult notInitialized()?, TResult initializing()?, TResult initialized(List< DeviceInfo> devices, List<NamedLocale> locales, DevicePreviewData data)?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult notInitialized(), required TResult initializing(), required TResult initialized(List< DeviceInfo> devices, List<NamedLocale> locales, DevicePreviewData data)}) → TResult -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited