application/core/services/onboarding
library
Functions
-
getUserFriendlyMsg(int code)
→ String
-
returns a user friendly message based on the
code
.
-
onboardingPath({required CoreState state})
→ OnboardingPathConfig
-
Does a check on user profile on whether logged in user has bio data and partnerType and
redirects accordingly
-
processResponse(Response response, BuildContext context)
→ ProcessedResponse
-
Processes all non-authenticated HTTP api calls made in the app
-
toggleUserExists({required BuildContext context, required bool value})
→ void
-
-
toggleWaitStateFlagIndicator({required BuildContext context, required String flag, bool show = true})
→ void
-
toggleWaitStateFlagIndicator a generic function that call
WaitAction
to add
or remove
a flag. When show
is true
, the flag will be removed.
-
unMarshallErrorResponse(Map<String, dynamic>? body)
→ int
-
Extracts the code from the body of the response
-
updateStateContacts({required BuildContext context, required StateContactType type, required String? value})
→ void
-
Used in
Profile
to update state when contact details are updated
-
validateEnteredPin({required BuildContext context, required String flag, required SetPinStatus setPinStatus, ReduxAction<CoreState>? logoutAction})
→ Future<void>
-
Validates that the PINs provided match & are valid createPin and confirmPin