createAction abstract method
Creates an action for processing the deep link.
This method should parse the URI and create an appropriate action that will be processed by your app's action system. The action can:
- Navigate to a screen
- Save data locally
- Make API calls
- Combine multiple operations
Return null if the URI cannot be handled (e.g., missing required parameters).
uri The incoming deep link URI to process.
route The matched RouteInfo that contains this handler.
The generic type T allows for type-safe action creation. In your app, you can create a base handler type like:
abstract class AppDeepLinkHandler extends DeepLinkHandler<DeferredAction<dynamic>> {}
Implementation
T? createAction(Uri uri, RouteInfo route);