onbeforeunload property

(dynamic Function(BeforeUnloadEvent)?) onbeforeunload

Implementation

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

Implementation

set onbeforeunload(_i2.dynamic Function(_i3.BeforeUnloadEvent)? value) {
  _i4.setProperty(
    this,
    'onbeforeunload',
    value == null ? _i6.undefined : _i4.allowInterop(value),
  );
}