setBlurOptions method

void setBlurOptions(
  1. BlurOptions options
)

Set the blur options used in the player.

Implementation

void setBlurOptions(BlurOptions options) {
  _preferences.put('blur_width', options.width);
  _preferences.put('blur_height', options.height);
  _preferences.put('blur_left', options.left);
  _preferences.put('blur_top', options.top);

  _preferences.put('blur_red', options.color.red);
  _preferences.put('blur_green', options.color.green);
  _preferences.put('blur_blue', options.color.blue);
  _preferences.put('blur_opacity', options.color.opacity);

  _preferences.put('blur_radius', options.blurRadius);
  _preferences.put('blur_visible', options.visible);
}