mode property

RequestMode? get mode

A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.

Implementation

_i3.RequestMode? get mode => switch (_i4.getProperty(
      this,
      'mode',
    )) {
      _i2.String name => _i3.RequestModeOptions.values.byName(name),
      _ => null
    };
set mode (RequestMode? value)

Implementation

set mode(_i3.RequestMode? value) {
  _i4.setProperty(
    this,
    'mode',
    value?.name ?? _i6.undefined ?? _i6.undefined,
  );
}