blurOptions property

BlurOptions blurOptions

Get the blur options used in the player.

Implementation

BlurOptions get blurOptions {
  double width = _preferences.get('blur_width', defaultValue: 200.0);
  double height = _preferences.get('blur_height', defaultValue: 200.0);
  double left = _preferences.get('blur_left', defaultValue: -1.0);
  double top = _preferences.get('blur_top', defaultValue: -1.0);

  int red = _preferences.get('blur_red',
      defaultValue: Colors.black.withOpacity(0).red);
  int green = _preferences.get('blur_green',
      defaultValue: Colors.black.withOpacity(0).green);
  int blue = _preferences.get('blur_blue',
      defaultValue: Colors.black.withOpacity(0).blue);
  double opacity = _preferences.get('blur_opacity',
      defaultValue: Colors.black.withOpacity(0).opacity);

  Color color = Color.fromRGBO(red, green, blue, opacity);

  double blurRadius = _preferences.get('blur_radius', defaultValue: 5.0);
  bool visible = _preferences.get('blur_visible', defaultValue: false);

  return BlurOptions(
    width: width,
    height: height,
    left: left,
    top: top,
    color: color,
    blurRadius: blurRadius,
    visible: visible,
  );
}