of static method
The state of the nearest instance of the MasterDetailScaffold widget.
Implementation
static MasterDetailScaffoldState? of(BuildContext context,
{bool nullOk = false}) {
final MasterDetailScaffoldState? result =
context.findAncestorStateOfType<MasterDetailScaffoldState>();
if (nullOk || result != null) return result;
throw FlutterError(
'MasterDetailScaffold.of() called with a context that does not contain a MasterDetailScaffold.');
}