handleEvent method
Implementation
ResEvent? handleEvent(String name, dynamic data) {
switch (name) {
case 'add':
return _handleAddEvent(data);
case 'remove':
return _handleRemoveEvent(data);
default:
return null;
}
}