SafeRoute<TArgs, TResult> constructor
SafeRoute<TArgs, TResult> ({
- required String name,
- required Widget builder(
- BuildContext,
- TArgs
Creates a new SafeRoute.
name
is the route path (e.g.'/home'
).builder
is a function that builds the widget for the route, using the provided arguments of typeTArgs
.
Implementation
SafeRoute({required super.name, required this.builder});