notifyElementGenerated method

void notifyElementGenerated(
  1. Object? element
)

Dispatch a onGenerate event with element.

Implementation

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