locationOrNull
Deprecated (with error)
Use location function instead.
Replace with
this.location<T>()
Content copied to clipboard
Retrieves the current call's location or fails if it is not available (request is not handled by a location class), or not yet available (invoked too early before the locations plugin takes place).
Despite of the name, the function fails if no location found. This is why it's deprecated.