register property

Implementation

_i2.Future<_i3.ServiceWorkerRegistration> Function(
  _i2.Object, [
  _i3.RegistrationOptions?,
]) get register => (
      _i2.Object p0, [
      _i3.RegistrationOptions? p1,
    ]) =>
        _i4.promiseToFuture(_i4.callMethod(
          _i4.getProperty(
            this,
            'register',
          ),
          r'call',
          [
            this,
            p0,
            p1 ?? _i6.undefined,
          ],
        ));

Implementation

set register(
    _i2.Future<_i3.ServiceWorkerRegistration> Function(
      _i2.Object, [
      _i3.RegistrationOptions?,
    ]) value) {
  _i4.setProperty(
    this,
    'register',
    _i4.allowInterop(value),
  );
}