wearModeOf static method

WearMode wearModeOf(
  1. BuildContext context
)

Get current WearMode.

Implementation

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