ConvertableText constructor

const ConvertableText({
  1. Key? key,
  2. required String text,
  3. Color? color,
  4. required TextStyle style,
  5. TextAlign? textAlign,
  6. LinearGradient? gradientColor,
  7. List<Shadow>? shadows,
})

Implementation

const ConvertableText({
  super.key,
  required this.text,
  this.color,
  required this.style,
  this.textAlign,
  this.gradientColor,
  this.shadows,
}) : assert(
        gradientColor == null || color == null,
        "You can't use both color and gradientColor at the same time.",
      );