notifyElementGenerated method

void notifyElementGenerated(
  1. Object? element
)

Dispatch a onGenerate event with element.

Implementation

void notifyElementGenerated(Object? element) {
  final onGenerate = _onGenerate;
  if (onGenerate != null) {
    try {
      onGenerate.add(element);
    } catch (e, s) {
      print(e);
      print(s);
    }
  }
}