Adaptation<T> class
Defines a customized theme for components with an adaptive
factory constructor.
Currently, only Switch.adaptive supports this class.
Constructors
- Adaptation()
-
Creates an Adaptation.
const
Properties
Methods
-
adapt(
ThemeData theme, T defaultValue) → T - Typically, this is overridden to return an instance of a custom component ThemeData class, like SwitchThemeData, instead of the defaultValue.
-
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