forgroundGradient property
Widget
forgroundGradient
Implementation
Widget get forgroundGradient => ShaderMask(
shaderCallback: (Rect bounds) {
return const LinearGradient(
colors: <Color>[Colors.black, Colors.transparent, Colors.black],
).createShader(bounds);
},
blendMode: BlendMode.dstIn,
child: this,
);