Filter class Null safety

๐Ÿ”ฌ 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 and _baseRadius to 4.0.

โ— See Consideration in library surface.dart doc

Regarding ๐Ÿ‘“ Filter.filteredLayers and ๐Ÿ“Š Filter.radiusMap values.

Default ๐Ÿ“Š radius passed to ๐Ÿ’ง FX.blurry is _BLUR == 4.0 & minimum is 0.0003.

Constructors

Filter({SurfaceFX effect = FX.blurry, Set<SurfaceLayer> filteredLayers = BASE, Map<SurfaceLayer, double>? radiusMap, double? radiusBase, double? radiusMaterial, double? radiusChild, bool extendBaseFilter = false})
A ๐ŸŒŸ Surface may be provided a ๐Ÿ”ฌ Filter to change filter appearance at all ๐Ÿ“š SurfaceLayers. [...]
const

Properties

effect โ†’ SurfaceFX
๐Ÿคนโ€โ™‚๏ธ Surface FX [...]
final
extendBaseFilter โ†’ bool
If extendBaseFilter is true, the BackdropFilter for ๐Ÿ“š SurfaceLayer.BASE will extend to cover the Surface.margin padding.
final
filteredLayers โ†’ Set<SurfaceLayer>
Provide a Set{} to ๐Ÿ‘“ filteredLayers to specify which ๐Ÿ“š SurfaceLayers will have an effect ๐Ÿคนโ€โ™‚๏ธ SurfaceFX enabled. [...]
final
hashCode โ†’ int
The hash code for this object. [...]
read-only, inherited
radiusMap โ†’ Map<SurfaceLayer, double>
Returns a Map<SurfaceLayer, double> via radiusByLayer, and so will always have an entry for every ๐Ÿ“š Layer, even if it is the default _BLUR == 4.0. [...]
read-only
renderedRadiusBase โ†’ double
Checks if double ๐Ÿ“Š _radiusBase was initialized and returns if so. [...]
read-only
renderedRadiusChild โ†’ double
Checks if double ๐Ÿ“Š _radiusChild was initialized and returns if so. [...]
read-only
renderedRadiusMaterial โ†’ double
Checks if double ๐Ÿ“Š _radiusMaterial was initialized and returns if so. [...]
read-only
runtimeType โ†’ Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) โ†’ dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
radiusByLayer(SurfaceLayer layer) โ†’ double
Returns the corresponding renderedRadius_ field by ๐Ÿ“š SurfaceLayer switch. [...]
toString() โ†’ String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) โ†’ bool
The equality operator. [...]
inherited

Constants

BASE โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ Base [...]
<SurfaceLayer>{SurfaceLayer.BASE}
BASE_AND_CHILD โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ Base & Child [...]
<SurfaceLayer>{SurfaceLayer.BASE, SurfaceLayer.CHILD}
BASE_AND_MATERIAL โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ Base & Material [...]
<SurfaceLayer>{SurfaceLayer.BASE, SurfaceLayer.MATERIAL}
CHILD โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ Child [...]
<SurfaceLayer>{SurfaceLayer.CHILD}
DEFAULT โ†’ const Filter
A new ๐ŸŒŸ Surface defaults ๐Ÿ”ฌ Surface.filter to this DEFAULT, which differs from a (new) FilterSpec.
Filter(filteredLayers: NONE, radiusMap: <SurfaceLayer, double>{}, effect: FX.blurry)
INNER_BILAYER โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ Inner Bilayer [...]
<SurfaceLayer>{SurfaceLayer.MATERIAL, SurfaceLayer.CHILD}
MATERIAL โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ Material [...]
<SurfaceLayer>{SurfaceLayer.MATERIAL}
NONE โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ None [...]
<SurfaceLayer>{}
TRILAYER โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ Trilayer [...]
<SurfaceLayer>{SurfaceLayer.BASE, SurfaceLayer.MATERIAL, SurfaceLayer.CHILD}