backgroundBlendMode method

Widget backgroundBlendMode(
  1. BlendMode blendMode, {
  2. Key? key,
  3. bool animate = false,
})

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),
          );