DeviceValue<T> class Null safety

Constructors

DeviceValue({T? web, T? phone, T? tablet, T? desktop, T? tv, T? watch, T? fallback})
const

Properties

desktop → T
read-only
fallback → T
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
phone → T
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tablet → T
read-only
tv → T
read-only
watch → T
read-only
web → T
read-only

Methods

getValue(BuildContext context) → T
maybeGetValue(BuildContext context, [bool useFallback = false]) → T?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited