[FIX] Error Stream in constructor.
This commit is contained in:
@@ -74,7 +74,9 @@ class _AstromicCustomFieldState<T> extends State<AstromicCustomField<T>> {
|
|||||||
_labelNode = widget.formController.node<String>('${widget.formID}_label', initialValue: initialLabel);
|
_labelNode = widget.formController.node<String>('${widget.formID}_label', initialValue: initialLabel);
|
||||||
|
|
||||||
_dataNode.addListener(_syncDataToLabel);
|
_dataNode.addListener(_syncDataToLabel);
|
||||||
widget.formController.errorStream.listen(_handleApiErrors);
|
if (widget.formController.errorStream != null) {
|
||||||
|
widget.formController.errorStream!.listen(_handleApiErrors);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Synchronizes the string display node whenever the raw data value changes.
|
/// Synchronizes the string display node whenever the raw data value changes.
|
||||||
|
|||||||
Reference in New Issue
Block a user