Filter constructor
const
Filter({
- Set<
SurfaceLayer> filteredLayers = BASE, - Map<
SurfaceLayer, double> ? radiusMap, - double? baseRadius,
- double? materialRadius,
- double? childRadius,
- bool extendBaseFilter = false,
- SurfaceFX effect = FX.blurry,
🔬 Filter
A 🌟 Surface may be provided a 🔬 Filter to change filter appearance at all 📚 SurfaceLayers.
Set<SurfaceLayer>
👓 filteredLayers determines which 📚 Layers have filters- 📊 radiusMap or baseRadius && materialRadius && childRadius determine filter strength
- Use extendBaseFilter
== true
to have 📚 SurfaceLayer.BASE's filter extend to cover the Surface.margin insets.
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
.
- ❗ See CAUTION in Surface doc.
Implementation
const Filter({
this.filteredLayers = BASE,
this.radiusMap,
this.baseRadius,
this.materialRadius,
this.childRadius,
this.extendBaseFilter = false,
this.effect = FX.blurry,
});