TemplateState constructor
TemplateState({
- required PheasantTemplate component,
- PheasantTemplate? initState,
- List<
ChangeWatcher> watchers = const <ChangeWatcher>[], - PheasantTemplate? disposeState,
Constructor to create a TemplateState object.
Ensure to pass watchers
as a growable list - List.empty for instance - else watchers would not be able to be registered.
Implementation
TemplateState(
{required super.component,
PheasantTemplate? initState,
this.watchers = const <ChangeWatcher>[],
this.disposeState})
: initState = initState ?? component,
emitter = ChangeEmitter(),
receiver = ChangeReceiver();