toUri<T> method
Implementation
Future<T?> toUri<T>(
Uri uri, {
bool replace = false,
Object? arguments,
}) {
return to<T>(
uri.path.isEmpty ? '/' : uri.path,
query: uri.queryParameters,
replace: replace,
arguments: arguments ?? uri.fragment,
);
}