color method
Applies an ColorFilterEffect to a Widget.
Implementation
Widget color({
Color? color,
BlendMode mode = BlendMode.overlay,
List<double>? matrix,
Color? colorFrom,
List<double>? fromMatrix,
}) {
return EffectWidget(
start: colorFrom == null
? null
: ColorFilterEffect(
color: colorFrom,
mode: mode,
matrix: fromMatrix,
),
end: ColorFilterEffect(
color: color,
mode: mode,
matrix: matrix,
),
child: this,
);
}