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.
const
factory
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.
const
factory
Filter.contrast([double percentage])
Creates a contrast filter function that adjusts the contrast of the input image.
const
factory
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.
const
factory
Filter.grayscale([double percentage])
Creates a grayscale filter function that converts the input image to grayscale.
const
factory
Filter.hueRotate([Angle angle])
Creates a hue-rotate filter function that rotates the hue of an element and its contents.
const
factory
Filter.invert([double percentage])
Creates an invert filter function that inverts the colors of the input image.
const
factory
Filter.list(List<Filter> filterValues)
Combines multiple filter functions into a single filter value.
const
factory
Filter.opacity([double percentage])
Creates an opacity filter function that applies transparency to the samples in the input image
const
factory
Filter.saturate([double percentage])
Creates a saturate filter function that super-saturates or desaturates the input image.
const
factory
Filter.sepia([double percentage])
Creates a sepia filter function that applies a sepia filter to the input image, giving it a warm, brownish tone.
const
factory
Filter.url(String url)
Creates a url filter function that references an SVG filter element.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The css value
final

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

Constants

inherit → const Filter
initial → const Filter
none → const Filter
revert → const Filter
revertLayer → const Filter
unset → const Filter