location property
- @Deprecated('Use uri instead. ' 'This feature was deprecated after v3.8.0-3.0.pre.')
The location of the application.
The string is usually in the format of multiple string identifiers with
slashes in between. ex: /
, /path
, /path/to/the/app
.
Implementation
@Deprecated(
'Use uri instead. '
'This feature was deprecated after v3.8.0-3.0.pre.'
)
String get location {
return _location ?? Uri.decodeComponent(
Uri(
path: uri.path.isEmpty ? '/' : uri.path,
queryParameters: uri.queryParametersAll.isEmpty ? null : uri.queryParametersAll,
fragment: uri.fragment.isEmpty ? null : uri.fragment,
).toString(),
);
}