of static method
Implementation
static HiddenDrawerState of(BuildContext? context) {
assert(context != null);
final HiddenDrawerState? result = context!.findAncestorStateOfType();
if (result != null) return result;
throw FlutterError(
'HiddenDrawer.of() called with a context that does not contain a HiddenDrawer.');
}