modalRouteName property

String? get modalRouteName

Returns the name of the modal route, if available. If the modal route is null or the settings name is null, it returns null.

Implementation

String? get modalRouteName => modalRoute?.settings.name;