Filter constructor

const Filter({
  1. Set<SurfaceLayer> filteredLayers = BASE,
  2. Map<SurfaceLayer, double>? radiusMap,
  3. double? baseRadius,
  4. double? materialRadius,
  5. double? childRadius,
  6. bool extendBaseFilter = false,
  7. SurfaceFX effect = FX.blurry,
})

🔬 Filter

A 🌟 Surface may be provided a 🔬 Filter to change filter appearance at all 📚 SurfaceLayers.

While a new 🌟 Surface employs 🔬 DEFAULT, where 👓 filteredLayers is NONE, a new 🔬 Filter defaults 👓 filteredLayers to BASE.

  • Default 📊 radius/strength is _BLUR == 4.0.
  • Minimum accepted 📊 radius for an activated 📚 Layer is _BLUR_MINIMUM == 0.0003.

Implementation

const Filter({
  this.filteredLayers = BASE,
  this.radiusMap,
  this.baseRadius,
  this.materialRadius,
  this.childRadius,
  this.extendBaseFilter = false,
  this.effect = FX.blurry,
});