pageSettings property

PageSettings? get pageSettings

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

Implementation

PageSettings? get pageSettings {
  final Object? args = ModalRoute.of(this)?.settings.arguments;
  if (args is PageSettings) {
    return args;
  }
  return null;
}