ThemeColorExtensions extension
- on
Properties
- isGradient → bool
-
Returns
true
if Color is GradientColor.no setter
Methods
-
darken(
[double amount = 0.1]) → Color -
Darkens Color by the amount of
amount
. -
lighten(
[double amount = 0.1]) → Color -
Make Color brighter by the amount of
amount
. -
toLinearGradient(
{AlignmentGeometry begin = Alignment.centerLeft, AlignmentGeometry end = Alignment.centerRight, TileMode tileMode = TileMode.clamp, List< double> ? stops, GradientTransform? transform}) → Gradient - Detects GradientColor stored in Color and creates LinearGradient.