dispatchEvent method

  1. @override
void dispatchEvent(
  1. dynamic state, {
  2. dynamic value,
})
override

Implementation

@override
void dispatchEvent(dynamic state, {dynamic value}) {
  for (var item in _listeners) {
    if (item.state == state) {
      value != null ? item.function(value) : item.function();
    }
  }
}