DeveloperToolAction typedef

DeveloperToolAction = FutureOr<void> Function(BuildContext context)

Signature for a developer tool action.

The BuildContext is a navigator context when DeveloperTools is built with DeveloperTools.navigatorKey (or DeveloperTools.builder's navigatorKey). Use it to show dialogs and push routes. Without a navigator key, the context is the overlay and cannot be used for dialogs.

Implementation

typedef DeveloperToolAction = FutureOr<void> Function(BuildContext context);