DeviceValue<T> class

Constructors

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

Properties

desktop → T
no setter
fallback → T
no setter
hashCode int
The hash code for this object.
no setterinherited
phone → T
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tablet → T
no setter
tv → T
no setter
watch → T
no setter
web → T
no setter

Methods

getValue(BuildContext context) → T
maybeGetValue(BuildContext context, [bool useFallback = false]) → T?
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