ULocationResult class

Outcome of a one-shot location request: a position or the reason there is none.

Annotations

Constructors

ULocationResult.failure(ULocationError error)
A result with an error.
const
ULocationResult.success(UPosition position)
A result with a position.
const

Properties

error → ULocationError?
Why it failed, or null.
final
hashCode → int
The hash code for this object.
no setterinherited
isSuccess → bool
True when a position was read.
no setter
position → UPosition?
The position, or null on 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