emit method
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,
});
}