RouteCompletionCallback<T> typedef Null safety

RouteCompletionCallback<T> = void Function(T result)

A callback to handle the result of a completed Route.

The return value of the route (which can be null for e.g. void routes) is passed to the callback.

Used by RestorableRouteFuture.onComplete.

Implementation

typedef RouteCompletionCallback<T> = void Function(T result);