BaseFlow<F extends Enum, S extends Enum> class

Mixed-in types
Implementers

Constructors

BaseFlow()

Properties

analytics → HujBaseAnalyticsServiceRouter?
Default access to the analytics router — can be overridden
no setterinherited
analyticsAvailable → bool
no setterinherited
context ↔ BuildContext?
getter/setter pair
currentStep ↔ S?
getter/setter pair
flowManager → FlowManager<Enum, Enum>?
no setter
flowState → Map<String, dynamic>
final
flowType → F
no setter
hashCode → int
The hash code for this object.
no setterinherited
initialized → bool
Check if initialized
no setterinherited
no setter
pageRegistry → Map<S, ({Widget Function(Key) creator, StepType stepType})>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stepType ↔ Type
latefinal

Methods

checkInitializationConditions() → bool
Override this method in the class to provide initialization conditions Return true if all required conditions are met
override
checkInitialized(String componentName) → bool
Check initialization state Returns true if initialized, false otherwise
inherited
checkPreCondition(S step) → bool
complete() → Future<void>
getAllNavigationStates() → List<NavigationState>
override
getFirstStep() → Enum?
getFirstStepInterface() → FlowStepInterface?
getFlowConfigString() → String?
getFlowTransitions() → Map<Enum, ({dynamic nextStep, ConditionFunction? preCondition})>?
getGuard() → bool Function(BuildContext, String)?
override
getKeyForStep(S step) → GlobalKey<BasePageState<BasePage>>
getLastStep() → Enum?
getLastStepInterface() → FlowStepInterface?
getNavigationStateForStep<T extends Enum>(T step) → NavigationState
override
getNextStep(S step) → Enum?
getPageForStep(S step, {Key? identityKey}) → Widget
getPreviousStep(S step) → S?
getStepType(Enum step) → StepType?
getTransitionsForFlow() → Map<Enum, ({dynamic nextStep, ConditionFunction? preCondition})>?
Returns the transition map for this flow
getWidgetForStep(Enum step) → Widget?
hasFlowConfig() → bool
hasPageForStep<T extends Enum>(T step) → bool
hasStepRegistered(Enum step) → bool
initialize() → bool
Try to initialize by checking conditions Returns true if already initialized or successfully initialized now
inherited
initializeRegistry() → void
markInitialized() → void
Force mark as initialized (use with caution)
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEnd() → void
onStart() → void
performCleanup() → Future<void>
performNavigation(String routeName, {Object? data}) → Future<void>
performNavigationWithEnum(Enum step, {Object? data}) → Future<void>
processStepBack(S step) → Future<void>
processStepDone(S step) → Future<void>
processStepError(S step) → Future<void>
processStepResult(Enum step, StepResult result) → Future<void>
processStepSkip<T extends Enum>(T step) → Future<void>
registerPage(S step, Widget pageCreator(Key), {StepType stepType = StepType.typePage}) → void
registerStep(S step, Widget widgetCreator(Key), {StepType stepType = StepType.typePage}) → void
setContext(BuildContext context) → void
setFlowConfigString(String config) → void
setNavigationService(BaseNavigationService service) → void
setStepType(Type stepType) → dynamic
setup() → Future<void>
start(S initialStep) → Future<void>
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
updateState(Map<String, dynamic> updates) → Future<void>

Operators

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