arguments property
Object?
get
arguments
Get the arguments passed to the current route.
var args = context.arguments;
if (args != null) {
// Use the arguments
}
Implementation
Object? get arguments => ModalRoute.of(this)?.settings.arguments;