backgroundBlendMode method
Implementation
Widget backgroundBlendMode(
BlendMode blendMode, {
Key? key,
bool animate = false,
}) =>
animate
? _StyledAnimatedBuilder(
key: key,
builder: (animation) {
return _AnimatedDecorationBox(
child: this,
decoration: BoxDecoration(backgroundBlendMode: blendMode),
duration: animation.duration,
curve: animation.curve,
);
},
)
: DecoratedBox(
key: key,
child: this,
decoration: BoxDecoration(backgroundBlendMode: blendMode),
);