getAdaptation<T> method
Used to obtain a particular Adaptation from adaptationMap.
To get an adaptation, use Theme.of(context).getAdaptation<MyAdaptation>()
.
Implementation
Adaptation<T>? getAdaptation<T>() => adaptationMap[T] as Adaptation<T>?;