arguments<T> method
T?
arguments<T>()
Retrieves the typed route arguments or null.
Implementation
T? arguments<T>() {
final Object? args = ModalRoute.of(this)?.settings.arguments;
return args is T ? args : null;
}