InAppLocationKit class
Core orchestrator: GPS on → permission → position → optional reverse geocode.
- Implemented types
Constructors
- InAppLocationKit({InAppLocationConfig? config, GpsService? gpsService, PermissionCoordinator? permissionCoordinator})
Properties
- config → InAppLocationConfig
-
final
- currentStep → LocationFlowStep
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
steps
→ Stream<
LocationFlowStep> -
Live step updates for fully custom UI (InAppLocationFlow).
no setteroverride
Methods
-
dispose(
) → void -
override
-
ensureReady(
{bool requestGpsIfDisabled = true}) → Future< LocationFlowResult> -
GPS enabled and app permission granted (no position fetch).
override
-
fetchCurrentLocation(
{bool requestGpsIfDisabled = true}) → Future< LocationFlowResult> -
Full pipeline including position and optional geocoding.
override
-
hasPermission(
) → Future< bool> -
Whether app has when-in-use or always permission.
override
-
isGpsEnabled(
) → Future< bool> -
Whether device GPS is on (does not check app permission).
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openAppSettings(
) → Future< bool> -
override
-
openLocationSettings(
) → Future< bool> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited