getWarningAndErrors method

  1. @override
EditorWarningAndErrorsEntity getWarningAndErrors(
  1. ID nodeID,
  2. BuildContext context
)
override

Implementation

@override
EditorWarningAndErrorsEntity getWarningAndErrors(
  ID nodeID,
  BuildContext context,
) {
  if (value.isEmpty) {
    return EditorWarningAndErrorsEntity(errors: [
      EditorErrorEntity(
        message: 'Assign UI State Action value is empty',
        nodeID: nodeID,
      ),
    ]);
  }
  return EditorWarningAndErrorsEntity.clear();
}