getWarningAndErrors method

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

Implementation

@override
EditorWarningAndErrorsEntity getWarningAndErrors(
    ID nodeID, BuildContext context) {
  if (values.isEmpty) {
    return EditorWarningAndErrorsEntity(
      warnings: [
        EditorWarningEntity(
          message: 'Values must be set',
          nodeID: nodeID,
        ),
      ],
    );
  }
  return const EditorWarningAndErrorsEntity();
}