validate method

  1. @override
List<Error> validate(
  1. PigeonOptions options,
  2. Root root
)
override

Generates errors that would only be appropriate for this GeneratorAdapter.

For example, if a certain feature isn't implemented in a GeneratorAdapter yet.

Implementation

@override
List<Error> validate(PigeonOptions options, Root root) {
  final List<Error> errors = <Error>[];
  _errorOnEventChannelApi(errors, languageString, root);
  _errorOnSealedClass(errors, languageString, root);
  _errorOnInheritedClass(errors, languageString, root);
  return errors;
}