ColorOption class

Implemented types

Constructors

ColorOption({List<double> matrix = defaultColorMatrix})
If the color matrix is null, it will use the default color matrix.
const
ColorOption.brightness(double brightness)
factory
ColorOption.contrast(double contrast)
The contrast translate follows the guide: https://docs.rainmeter.net/tips/colormatrix-guide.
factory
ColorOption.rotate(int axis, double degrees)
Copy from android sdk. See Android SDK color matrix .
factory
ColorOption.saturation(double saturation)
Migrate from Android SDK saturation code .
factory
ColorOption.scale(double rScale, double gScale, double bScale, double aScale)
https://developer.android.google.cn/reference/android/graphics/ColorMatrix#setScale(float,%20float,%20float,%20float)
factory

Properties

canIgnore bool
Whether it is ture, it can be ignored.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
key String
The key of transfer value.
no setteroverride
matrix List<double>
5x4 color matrix. This matrix is capable on both Android and iOS.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transferValue Map<String, Object>
The value of transfer value.
no setteroverride

Methods

concat(ColorOption other) ColorOption
Merge other into this color matrix.
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