settingsOf static method
- BuildContext context
Returns ModalRoute.settings for the modal route most closely associated with the given context.
Returns null if the given context is not associated with a modal route.
Use of this method will cause the given context
to rebuild any time that
the ModalRoute.settings property of the ancestor _ModalScopeStatus
changes.
Implementation
static RouteSettings? settingsOf(BuildContext context) => _of(context, _ModalRouteAspect.settings)?.settings;