KwikFormsService class abstract

Constructors

KwikFormsService()

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Operators

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

Static Methods

geocodeAddress(String addressStr) Future<Map<String, dynamic>?>
Geocodes an address string via Google Maps API. Returns {lat, lng, source:'google'} or null on failure / missing key. Aborts after 800 ms to avoid blocking address submission. API key is read from CDN remoteKeys (RemoteKeyKeys.googleMapsKey).
kfAddAddress({required String phone, required String userAuthToken, required Map<String, dynamic> address, String? email, bool consent = true}) Future
Saves a new address for a phone number. Sets muToken + x-idempotency-key on global client headers (mirrors RN), then removes x-idempotency-key after the call to avoid polluting other requests.
kfGetAddressesByPhone({required String phone, required String userAuthToken, bool consent = true}) Future
Fetches saved addresses for a phone number. Uses muToken header for standalone (kwikforms) mode auth.
kfUpdateAddress({required String addressId, required String userAuthToken, required String phone, required Map<String, dynamic> address, bool consent = true}) Future
Updates an existing address by ID.