TwkApiV2 class abstract
Tawakkalna SDK Helper for V2 API
This class provides access to all V2 endpoints of the Tawakkalna SDK. Most methods correspond to the JavaScript window.TWK.V2.* functions.
- Implementers
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
-
generateToken(
) → Future< Map< String, dynamic> > - Generate authentication token (V2) Corresponds to: window.TWK.V2.generateToken()
-
getUserFamilyMembers(
{int? minAge, int? maxAge, int? gender}) → Future< Map< String, dynamic> > - Get user's family members with optional filters - V2 version Corresponds to: window.TWK.V2.getUserFamilyMembers(minage, maxage, gender)
-
getUserFullName(
) → Future< Map< String, String> > - Get user's full name (Arabic and English) - V2 version Corresponds to: window.TWK.V2.getUserFullName()
-
getUserNationality(
) → Future< Map< String, dynamic> > - Get user's nationality name - V2 version Corresponds to: window.TWK.V2.getUserNationality()
-
getUserSponsors(
{int? minAge, int? maxAge, int? gender}) → Future< Map< String, dynamic> > - Get user's sponsors with optional filters - V2 version Corresponds to: window.TWK.V2.getUserSponsors(minage, maxage, gender)
-
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