SurveyConfigModel class

Constructors

SurveyConfigModel({required String id, required String? name, required List<SurveyBlock> blocks, required List<SurveyNode> nodes, required String? rootNodeId, required SurveySettings settings, required SurveyTheme theme, required String? uiTemplateId, required int timeDelayMs})

Properties

blocks List<SurveyBlock>
final
blocksById Map<String, SurveyBlock>
O(1) block lookup keyed by block id.
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
name String?
final
nodes List<SurveyNode>
final
rootNodeId String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings SurveySettings
final
theme SurveyTheme
final
timeDelayMs int
final
uiTemplateId String?
final

Methods

blockFor(SurveyNode node) SurveyBlock?
nodeById(String? id) SurveyNode?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rootNode() SurveyNode?
toString() String
A string representation of this object.
inherited
welcomeBlock() SurveyBlock?
The welcome screen shown before the node flow, if present and not hidden. Welcome blocks are fixed intro chrome, not graph nodes.

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) SurveyConfigModel?