CssFilter class sealed

CSS filter function values.

Implemented types

Constructors

CssFilter.blur(CssLength radius)
Applies a Gaussian blur to the input image.
factory
CssFilter.brightness(num amount)
Applies a linear multiplier to the input image, making it appear more or less bright. amount: A number multiplier (0-1, or >1). 0 is black, 1 is unchanged.
factory
CssFilter.brightnessPercent(num amount)
Same as CssFilter.brightness but takes a percentage (0-100, or >100).
factory
CssFilter.compose(List<CssFilter> filters)
Composes multiple filter functions.
factory
CssFilter.contrast(num amount)
Adjusts the contrast of the input. amount: A number multiplier (0-1, or >1). 0 is gray, 1 is unchanged.
factory
CssFilter.contrastPercent(num amount)
Same as CssFilter.contrast but takes a percentage (0-100, or >100).
factory
CssFilter.dropShadow({required CssLength offsetX, required CssLength offsetY, CssLength? blurRadius, CssColor? color})
Applies a drop shadow effect to the input image.
factory
CssFilter.global(CssGlobal global)
Global keyword (inherit, initial, unset, revert).
factory
CssFilter.grayscale(num amount)
Converts the input image to grayscale. amount: A number multiplier (0-1). 1 is grayscale, 0 is unchanged.
factory
CssFilter.grayscalePercent(num amount)
Same as CssFilter.grayscale but takes a percentage (0-100).
factory
CssFilter.hueRotate(CssAngle angle)
Applies a hue rotation on the input image.
factory
CssFilter.hueRotateRaw(String angle)
Same as CssFilter.hueRotate but takes a unit string (e.g. '90deg', '0.5turn').
factory
CssFilter.invert(num amount)
Inverts the samples in the input image. amount: A number multiplier (0-1). 1 is inverted, 0 is unchanged.
factory
CssFilter.invertPercent(num amount)
Same as CssFilter.invert but takes a percentage (0-100).
factory
CssFilter.opacity(num amount)
Applies transparency to the samples in the input image. amount: A number multiplier (0-1). 0 is transparent, 1 is unchanged.
factory
CssFilter.opacityPercent(num amount)
Same as CssFilter.opacity but takes a percentage (0-100).
factory
CssFilter.raw(String value)
Raw CSS value escape hatch.
factory
CssFilter.saturate(num amount)
Saturates the input image. amount: A number multiplier (0-1, or >1). 0 is un-saturated, 1 is unchanged.
factory
CssFilter.saturatePercent(num amount)
Same as CssFilter.saturate but takes a percentage (0-100, or >100).
factory
CssFilter.sepia(num amount)
Converts the input image to sepia. amount: A number multiplier (0-1). 1 is sepia, 0 is unchanged.
factory
CssFilter.sepiaPercent(num amount)
Same as CssFilter.sepia but takes a percentage (0-100).
factory
CssFilter.variable(String varName)
CSS variable reference.
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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCss() String
Converts this value to its CSS string representation.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

none → const CssFilter