params property

Map<String, String> get params

Retrieves the parameters associated with the current modal route's settings arguments.

Implementation

Map<String, String> get params {
  final args = settings?.arguments;
  if (args is PageSettings) {
    return args.params;
  } else {
    return {};
  }
}