getWarningAndErrors method

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

Implementation

@override
EditorWarningAndErrorsEntity getWarningAndErrors(
    ID nodeID, BuildContext context) {
  if (cubitID == null) {
    return EditorWarningAndErrorsEntity(
      errors: [
        EditorErrorEntity(
          nodeID: nodeID,
          message: 'Cubit ID is required',
        ),
      ],
    );
  }

  return const EditorWarningAndErrorsEntity();
}