onSessionEvent method

void onSessionEvent(
  1. dynamic event
)

Implementation

void onSessionEvent( event ) {
  final controller = inputSourcesMap[event.inputSource];
  if ( controller ) {
    controller.dispatchEvent({'type': event.type, 'data': event.inputSource } );
  }
}