PageArgExtension<T> extension

Extension methods for BuildContext to provide convenient access to page-related information.

These extension methods facilitate accessing page settings, arguments, parameters, router information, and delegate within a build context.

Example usage:

final settings = context.settings;
final pageSettings = context.pageSettings;
final arguments = context.arguments;
final params = context.params;
final router = context.router;
final location = context.location;
final delegate = context.delegate;
on

Properties

arguments → dynamic

Available on BuildContext, provided by the PageArgExtension extension

Retrieves the arguments associated with the current modal route's settings.
no setter
delegate GetDelegate

Available on BuildContext, provided by the PageArgExtension extension

Retrieves the delegate associated with the current router.
no setter
location String

Available on BuildContext, provided by the PageArgExtension extension

Retrieves the location (path) associated with the current build context.
no setter
pageSettings PageSettings?

Available on BuildContext, provided by the PageArgExtension extension

Retrieves the PageSettings associated with the current modal route's settings arguments.
no setter
params Map<String, String>

Available on BuildContext, provided by the PageArgExtension extension

Retrieves the parameters associated with the current modal route's settings arguments.
no setter
router Router<T>

Available on BuildContext, provided by the PageArgExtension extension

Retrieves the Router associated with the current build context.
no setter
settings RouteSettings?

Available on BuildContext, provided by the PageArgExtension extension

Retrieves the route settings associated with the current modal route.
no setter