WallpaperTarget enum

The target screen on which a wallpaper should be set.

Replaces the magic strings ("home", "lock", "both") used in v1.x with a type-safe enum.

Inheritance
Available extensions

Values

home → const WallpaperTarget

Set the wallpaper on the home screen only.

lock → const WallpaperTarget

Set the wallpaper on the lock screen only.

both → const WallpaperTarget

Set the wallpaper on both the home and lock screens.

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
nativeValue → String
Maps this enum to the string value understood by the native platform.
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

Static Methods

fromNativeValue(String? value) → WallpaperTarget
Resolves a native string value back into a WallpaperTarget.

Constants

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