Filter class
๐ฌ Filter
A ๐ Surface may be provided a ๐ฌ Filter to change filter appearance at all ๐ SurfaceLayers.
Set<SurfaceLayer>
๐ filteredLayers ultimately determines which ๐ Layers have filters enabled- 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 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 ๐ SurfaceLayerswitch
. -
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