GradientText constructor

const GradientText(
  1. String text, {
  2. required Gradient gradient,
  3. Key? key,
  4. TextStyle? style,
})

Constructs a GradientText widget.

text is the text to be displayed.

gradient is the gradient applied to the text.

style is the optional text style to be applied.

Implementation

const GradientText(
  this.text, {
  required this.gradient,
  super.key,
  this.style,
});