Filter class

๐Ÿ”ฌ 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.
no setterinherited
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.
no setter
renderedRadiusBase โ†’ double
Checks if double ๐Ÿ“Š _radiusBase was initialized and returns if so.
no setter
renderedRadiusChild โ†’ double
Checks if double ๐Ÿ“Š _radiusChild was initialized and returns if so.
no setter
renderedRadiusMaterial โ†’ double
Checks if double ๐Ÿ“Š _radiusMaterial was initialized and returns if so.
no setter
runtimeType โ†’ Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) โ†’ dynamic
Invoked when a nonexistent 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
BASE_AND_CHILD โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ Base & Child
BASE_AND_MATERIAL โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ Base & Material
CHILD โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ Child
DEFAULT โ†’ const Filter
A new ๐ŸŒŸ Surface defaults ๐Ÿ”ฌ Surface.filter to this DEFAULT, which differs from a (new) FilterSpec.
INNER_BILAYER โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ Inner Bilayer
MATERIAL โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ Material
NONE โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ None
TRILAYER โ†’ const Set<SurfaceLayer>
๐Ÿ‘“ Trilayer