onmessage property

void Function(MessageEvent)? get onmessage

Implementation

void Function(_i3.MessageEvent<_i2.dynamic>)? get onmessage =>
    (_i3.MessageEvent<_i2.dynamic> p0) => _i4.callMethod(
          _i4.getProperty(
            this,
            'onmessage',
          ),
          r'call',
          [
            this,
            p0,
          ],
        );
set onmessage (void value(MessageEvent)?)

Implementation

set onmessage(void Function(_i3.MessageEvent<_i2.dynamic>)? value) {
  _i4.setProperty(
    this,
    'onmessage',
    value == null ? _i6.undefined : _i4.allowInterop(value),
  );
}