wearModeOf static method
Get current WearMode.
Implementation
static WearMode wearModeOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<_InheritedAmbientMode>()!
.mode;
}
Get current WearMode.
static WearMode wearModeOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<_InheritedAmbientMode>()!
.mode;
}