getWarningAndErrors method
Implementation
@override
EditorWarningAndErrorsEntity getWarningAndErrors(
ID nodeID,
BuildContext context,
) {
if (content.isEmpty) {
return EditorWarningAndErrorsEntity(
warnings: [
EditorWarningEntity(
message: 'Content is empty',
nodeID: nodeID,
),
],
);
}
return const EditorWarningAndErrorsEntity();
}