currentUrl property

  1. @override
String get currentUrl

Current URL without the baseUrl. Always starts with a leading '/'.

Implementation

@override
String get currentUrl =>
    _currentUrl ?? location.href.replaceFirst(baseUrl, '');