BaseChatFlow<F extends Enum, S extends Enum> class
Specialized BaseFlow for Chat Flows
Constructors
Properties
- analytics → HujBaseAnalyticsServiceRouter?
-
Default access to the analytics router — can be overridden
no setterinherited
- analyticsAvailable → bool
-
no setterinherited
- context ↔ BuildContext?
-
getter/setter pairinherited
- currentStep ↔ S?
-
getter/setter pairinherited
-
flowManager
→ FlowManager<
Enum, Enum> ? -
no setterinherited
-
flowState
→ Map<
String, dynamic> -
finalinherited
- flowType → F
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialized → bool
-
Check if initialized
no setterinherited
-
no setterinherited
-
pageRegistry
→ Map<
S, ({Widget Function(Key) creator, StepType stepType})> -
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stepType ↔ Type
-
latefinalinherited
Methods
-
checkInitializationConditions(
) → bool -
Override this method in the class to provide initialization conditions
Return true if all required conditions are met
inherited
-
checkInitialized(
String componentName) → bool -
Check initialization state
Returns true if initialized, false otherwise
inherited
-
checkPreCondition(
S step) → bool -
inherited
-
complete(
) → Future< void> -
inherited
-
inherited
-
getFirstStep(
) → Enum? -
inherited
-
getFirstStepInterface(
) → FlowStepInterface? -
inherited
-
getFlowConfigString(
) → String? -
inherited
-
getFlowTransitions(
) → Map< Enum, ({dynamic nextStep, ConditionFunction? preCondition})> ? -
inherited
-
getGuard(
) → bool Function(BuildContext, String)? -
inherited
-
getKeyForStep(
S step) → GlobalKey< BasePageState< BasePage> > -
inherited
-
getLastStep(
) → Enum? -
inherited
-
getLastStepInterface(
) → FlowStepInterface? -
inherited
-
inherited
-
getNextStep(
S step) → Enum? -
inherited
-
getPageForStep(
S step, {Key? identityKey}) → Widget -
inherited
-
getPreviousStep(
S step) → S? -
inherited
-
getStepType(
Enum step) → StepType? -
inherited
-
getTransitionsForFlow(
) → Map< Enum, ({dynamic nextStep, ConditionFunction? preCondition})> ? -
Returns the transition map for this flow
inherited
-
getWidgetForStep(
Enum step) → Widget? -
inherited
-
hasFlowConfig(
) → bool -
inherited
-
hasPageForStep<
T extends Enum> (T step) → bool -
inherited
-
hasStepRegistered(
Enum step) → bool -
inherited
-
initialize(
) → bool -
Try to initialize by checking conditions
Returns true if already initialized or successfully initialized now
inherited
-
initializeRegistry(
) → void -
inherited
-
markInitialized(
) → void -
Force mark as initialized (use with caution)
inherited
-
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onEnd(
) → void -
inherited
-
onStart(
) → void -
inherited
-
performCleanup(
) → Future< void> -
inherited
-
inherited
-
Perform navigation with an enum
override
-
processStepBack(
S step) → Future< void> -
inherited
-
processStepDone(
S step) → Future< void> -
inherited
-
processStepError(
S step) → Future< void> -
inherited
-
processStepResult(
Enum step, StepResult result) → Future< void> -
inherited
-
processStepSkip<
T extends Enum> (T step) → Future< void> -
inherited
-
registerPage(
S step, Widget pageCreator(Key), {StepType stepType = StepType.typePage}) → void -
inherited
-
registerStep(
S step, Widget widgetCreator(Key), {StepType stepType = StepType.typePage}) → void -
inherited
-
setContext(
BuildContext context) → void -
inherited
-
setFlowConfigString(
String config) → void -
inherited
-
inherited
-
setStepType(
Type stepType) → dynamic -
inherited
-
setup(
) → Future< void> -
inherited
-
start(
S initialStep) → Future< void> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
trackExceptionWithContext(
Exception e, {String? context}) → void -
inherited
-
trackFlowEnd(
String flow) → void -
inherited
-
trackFlowStart(
String flow) → void -
inherited
-
trackIOWithTiming<
T> (String operation, Future< T> op(), {required String flow, required String step}) → Future<T> -
inherited
-
trackPageEnd(
String pageName) → void -
inherited
-
trackPageStart(
String pageName) → void -
inherited
-
trackStepEnd(
String flow, String step) → void -
inherited
-
trackStepStart(
String flow, String step) → void -
inherited
-
unregisterAllPages(
) → void -
inherited
-
updateState(
Map< String, dynamic> updates) → Future<void> -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- kChatContext → const String
- kChatHistory → const String
- kChatStartTime → const String
- kChatUserData → const String