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