Filter class
CSS filter effects let you define a way of processing an element's rendering before the element is displayed in the document. Examples of such effects include blurring and changing the intensity of the color of an element.
Read more: MDN CSS Filter Effects
Constructors
- Filter.blur([Unit length])
-
Creates a blur filter function that applies a Gaussian blur to the input image.
constfactory
- Filter.brightness([double percentage])
-
Creates a brightness filter function that applies a linear multiplier value on an element or an input image, making the image appear
brighter or darker.
constfactory
- Filter.contrast([double percentage])
-
Creates a contrast filter function that adjusts the contrast of the input image.
constfactory
- Filter.dropShadow({required Unit offsetX, required Unit offsetY, Unit? spread, Color? color})
-
Creates a drop-shadow filter function that applies a drop shadow effect to the input image.
constfactory
- Filter.grayscale([double percentage])
-
Creates a grayscale filter function that converts the input image to grayscale.
constfactory
- Filter.hueRotate([Angle angle])
-
Creates a hue-rotate filter function that rotates the hue of an element and its contents.
constfactory
- Filter.invert([double percentage])
-
Creates an invert filter function that inverts the colors of the input image.
constfactory
-
Filter.list(List<
Filter> filterValues) -
Combines multiple filter functions into a single filter value.
constfactory
- Filter.opacity([double percentage])
-
Creates an opacity filter function that applies transparency to the samples in the input image
constfactory
- Filter.saturate([double percentage])
-
Creates a saturate filter function that super-saturates or desaturates the input image.
constfactory
- Filter.sepia([double percentage])
-
Creates a sepia filter function that applies a sepia filter to the input image, giving it a warm, brownish tone.
constfactory
- Filter.url(String url)
-
Creates a url filter function that references an SVG filter element.
constfactory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited