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