getWarningAndErrors method

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

Implementation

@override
EditorWarningAndErrorsEntity getWarningAndErrors(
    ID nodeID, BuildContext context) {
  final res = label.getWarningAndErrors(nodeID, context);
  final res2 = value.getWarningAndErrors(nodeID, context);
  return res.copyWith(
    errors: res.errors + res2.errors,
    warnings: res.warnings + res2.warnings,
  );
}