getPath method Null safety
override
Returns the active path in the browser.
Implementation
@override
String getPath() {
final String path = _platformLocation.pathname + _platformLocation.search;
if (_basePath.isNotEmpty && path.startsWith(_basePath)) {
return ensureLeadingSlash(path.substring(_basePath.length));
}
return ensureLeadingSlash(path);
}