handleEvent method

ResEvent? handleEvent(
  1. String name,
  2. dynamic data
)
override

Implementation

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