fw/hujambo_flow_framework library
Classes
-
BaseChatFlow<
F extends Enum, S extends Enum> - Specialized BaseFlow for Chat Flows
- BaseChatPage
- Optional configuration class for chat-specific behaviors Base page class for chat interfaces
-
BaseChatPageState<
T extends BaseChatPage> - Base state class for chat page behavior
- BaseChatStep
- BaseChatStepFactory
- Factory for creating chat step widgets based on step data
-
BaseChatStepState<
T extends BaseChatStep> -
BaseFlow<
F extends Enum, S extends Enum> - BaseFlowTransition
- BaseMessage
- Service to handle navigation throughout the app
- BasePage
-
BasePageState<
T extends BasePage> - ChatDataCollectionStep
- ChatDataCollectionStepState
- ChatDateSelectionStep
- ChatDateSelectionStepState
- ChatDrawingStep
- ChatDrawingStepState
- ChatDropdownStep
- ChatDropdownStepState
- ChatHistoryItem
- Wrap any chat bubble with this so its State is never disposed when it scrolls off-screen.
- ChatHistoryItemState
- ChatImageStep
- ChatImageStepState
- ChatOptionsInputStep
- ChatOptionsInputStepState
- ChatPhoneInputStep
- ChatPhoneInputStepState
- ChatPhoneLauncherStep
- ChatSaveDataStep
- Chat step that triggers backend save with spinner and flowState access
- ChatSaveDataStepState
- ChatScriptLoader
- Manager for loading and accessing chat script data
-
ChatStepEnhancer<
T extends BaseChatStepState< BaseChatStep> > - ChatStepStyles
- Shared styling for all chat steps
- ChatTextDisplayStep
- ChatTextDisplayStepState
- ChatTextInputStep
- ChatTextInputStepState
- ChatTimeSelectionStep
- ChatTimeSelectionStepState
- ChatUIOptions
- ExternalServicesMgr
- FieldMapping
- Field mapping between page and message fields
- FlowConfig
-
FlowManager<
F extends Enum, S extends Enum> - FlowPage
- FlowStepConfig
- FlowStepInterface
- hujAppError
- Base application error class that wraps exceptions with additional context
- HujBaseAnalyticsProvider
-
Base class for analytics providers like Firebase, Console, etc.
Provides default no-op implementations so subclasses can override only what they need.
Registered via
AnalyticsServiceRouter.registerProvider. - HujBaseAnalyticsServiceRouter
- HujBaseAnalyticsTranslator
- HujBaseApp
- USApp serves as both the root widget and the super container, wiring in dependencies and setting up navigation and app state.
-
hujBaseChatEnhancer<
T extends BaseChatStepState< BaseChatStep> > - HujChatAutoAdvanceStep
- HUJLogger
- LocalStoreMgr
- Service to handle navigation throughout the app
- OptionsValues
- PageDataHandler
- Handles processing of messages through the system
- PageMsgCreator
- Creator for page/message objects with field mapping capabilities
- PresentationMgr
Enums
- AppStatus
- Enum representing the application's state
- BaseFlowStep
- ExceptionSeverity
- Defines the severity levels for exceptions
- FieldType
- hujErrorType
- Error types used for categorizing errors
- StepResult
- StepType
Mixins
Extensions
- AddressValidation on String
- AlphaCheck on String
- CountryValidation on String
- EmailRegXValidation on String
- EmailValidation on String
- EmptyCheck on String
- FirstNameValidation on String
- LastNameValidation on String
- NumberCheck on String
- OverLengthCheck on String
- PhoneNumberRegXValidation on String
- PhoneNumberValidation on String
- PostalCodeValidation on String
- SpecialCharacterCheck on String
- StateValidation on String
- UnderLengthCheck on String
Functions
-
validateInput(
String value, FieldType fieldType) → String?
Typedefs
-
ConditionFunction
= bool Function(Map<
String, dynamic> flowState) -
NextStepFunction<
T extends Enum> = T? Function(Map< String, dynamic> flowState)
Exceptions / Errors
- hujDataException
- hujFlowException
- hujFrameworkException
- Exception for navigation errors
- hujPageException
- hujPresentationException