completableWithArgs<R, P extends RouteParams> method Null safety

CompletableAppRoute<R, P> completableWithArgs<R, P extends RouteParams>(
  1. String routePath,
  2. {required CompletableHandler<R, P> handler,
  3. required ParameterConverter<P> converter,
  4. String? name}
)

Creates a CompletableAppRoute definition.

Implementation

CompletableAppRoute<R, P> completableWithArgs<R, P extends RouteParams>(
  String routePath, {
  required CompletableHandler<R, P> handler,
  required ParameterConverter<P> converter,
  String? name,
}) {
  final completable = CompletableAppRoute<R, P>(routePath, handler, converter, name: name);
  this.register(completable);
  return completable;
}