ChatScriptLoader class
Manager for loading and accessing chat script data
- Mixed-in types
Constructors
- ChatScriptLoader()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialized → bool
-
Check if initialized
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
-
initialize(
) → bool -
Try to initialize by checking conditions
Returns true if already initialized or successfully initialized now
inherited
-
loadScriptFile(
String assetPath) → Future< Map< String, dynamic> > - Loads a script file from assets
-
markInitialized(
) → void -
Force mark as initialized (use with caution)
inherited
-
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
Static Methods
-
addStep(
String stepId, Map< String, dynamic> stepData) → void - Adds a step to the cache (useful for testing or dynamic steps)
-
clearCache(
) → void - Clears the step data cache
-
extractStepConfig(
Map< String, dynamic> completeConfig, String stepName) → Map<String, dynamic> - Method to extract step config from complete config
-
getStep(
String stepId) → Map< String, dynamic> - Returns step data for a given step ID
-
loadFlowConfigFromFile(
String enumType) → Future< Map< String, dynamic> > - Method to load flow configuration from file
-
setBaseScript(
String assetPath) → Future< void> - Sets the base script for a chat session