ThemeColorExtensions extension

Define a theme extension for Color.

Color用のテーマエクステンションを定義します。

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.