removeElementBackgroundBlur function

void removeElementBackgroundBlur(
  1. Element element, [
  2. int? blurSize
])

Removes element background blur effect, set by setElementBackgroundBlur.

Implementation

void removeElementBackgroundBlur(Element element, [int? blurSize]) {
  var val = element.style.getPropertyValue('backdrop-filter');
  if (val.contains('blur')) {
    element.style.removeProperty('backdrop-filter');
  }
}