GeoLocationError class

A normalized geolocation error.

Use code for app logic. browserCode keeps the original browser numeric error when available.

Constructors

GeoLocationError({required GeoLocationErrorCode code, required String message, int? browserCode})
const

Properties

browserCode int?
Original browser geolocation error code when available.
final
code GeoLocationErrorCode
Stable error category that app code can switch on.
final
hashCode int
The hash code for this object.
no setterinherited
message String
Short user-facing explanation of the failure.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited