powerPreference property

WebGLPowerPreference? get powerPreference

Implementation

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

Implementation

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