fetch property

Future<Response> Function(Object, [RequestInit?]) get fetch

Implementation

_i2.Future<_i3.Response> Function(
  _i2.Object, [
  _i3.RequestInit?,
]) get fetch => (
      _i2.Object p0, [
      _i3.RequestInit? p1,
    ]) =>
        _i4.promiseToFuture(_i4.callMethod(
          _i4.getProperty(
            this,
            'fetch',
          ),
          r'call',
          [
            this,
            p0,
            p1 ?? _i6.undefined,
          ],
        ));
set fetch (Future<Response> value(Object, [RequestInit?]))

Implementation

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