color method
T
color({})
Adds a ColorEffect that animates a Color between begin
and end
, composited with
the target using blendMode
(via ColorFiltered). A color value of null
will be interpreted as a fully transparent version of the other color.
Implementation
T color({
Duration? delay,
Duration? duration,
Curve? curve,
Color? begin,
Color? end,
BlendMode? blendMode,
}) =>
addEffect(ColorEffect(
delay: delay,
duration: duration,
curve: curve,
begin: begin,
end: end,
blendMode: blendMode,
));