ColorFilter class

Constructors

ColorFilter(FilterFunction filterFunction, [Type? baseType])

Properties

baseType Type?
final
filterFunction FilterFunction
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Color color, List<num> args) Color
Magic method that allows instances of ColorFilter to be called as functions. The filter itself should be called as a function, rather than calling this method directly.
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

Static Properties

darken ColorFilter
Makes the color darker by the percentage specified in the first argument, or by 10% if no percentage is specified. Percentages should be specified as a float, e.g. an argument of 0.25 will result in a color 25% darker than the original. The darkening conversion is performed by adjusting the y component of the color in XYZ color space.
getter/setter pair
greyscale ColorFilter
Creates a greyscale color with the same perceived luminance as the source color (as given by the L* value of the color in the CieLAB color space).
getter/setter pair
identity ColorFilter
getter/setter pair
invert ColorFilter
Inverts the color by flipping it along the red/green, blue/yellow, and light/dark axes.
getter/setter pair
lighten ColorFilter
Makes the color lighter by the percentage specified in the first argument, or by 10% if no percentage is specified. Percentages should be specified as a float, e.g. an argument of 0.25 will result in a color 25% lighter than the original. The lightening conversion is performed by adjusting the y component of the color in XYZ color space.
getter/setter pair
sepia ColorFilter
Converts the color into its sepia tone equivalent.
getter/setter pair