filter property Null safety

ImageFilter filter

The image filter to apply to the existing painted content before painting the child.

For example, consider using ui.ImageFilter.blur to create a backdrop blur effect.

Implementation

ui.ImageFilter get filter => _filter;
void filter=(ImageFilter value)

Implementation

set filter(ui.ImageFilter value) {
  assert(value != null);
  if (_filter == value) {
    return;
  }
  _filter = value;
  markNeedsPaint();
}