emit method

  1. @override
Future<void> emit(
  1. String key,
  2. String from,
  3. dynamic data
)
override

Emit data to the window identified by the given key.

The from should default to the current window's key. data can be anything as long as it is a Dart standart data type.

Implementation

@override
Future<void> emit(String key, String from, dynamic data) {
  return _methodChannel.invokeMethod<void>('emit', {
    'key': key,
    'from': from,
    'data': data,
  });
}