FormFactorResolver<T> class
Constructors
-
FormFactorResolver({T mobileResolver()?, T tabletResolver()?, T desktopResolver()?, T resolver()?, Set<
FormFactors> ? supportedFormFactors})
Properties
- desktop → T
-
no setter
- desktopResolver → (T Function()?)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mobile → T
-
no setter
- mobileResolver → (T Function()?)
-
final
- resolver → (T Function()?)
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tablet → T
-
no setter
- tabletResolver → (T Function()?)
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
[FormFactors? formFactor]) → T - Resolves the value for the given form factor by precedence, defaulting to the current form factor.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
current<
T> ({T mobileResolver()?, T tabletResolver()?, T desktopResolver()?, T resolver()?}) → T