onclick property

dynamic Function(MouseEvent)? get onclick

Fires when the user clicks the left mouse button on the object @param ev The mouse event.

MDN Reference

Implementation

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

Implementation

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