route property

String? get route

Implementation

String? get route => ModalRoute.of(this)!.settings.name;