TextAvatar constructor

TextAvatar({
  1. Key? key,
  2. @required String? text,
  3. Color? textColor,
  4. Color? backgroundColor,
  5. Shape? shape,
  6. int? numberLetters,
  7. double? size,
  8. FontWeight? fontWeight = FontWeight.bold,
  9. String? fontFamily,
  10. double? fontSize = 16,
  11. bool? upperCase = false,
})

Implementation

TextAvatar(
    {Key? key,
    @required this.text,
    this.textColor,
    this.backgroundColor,
    this.shape,
    this.numberLetters,
    this.size,
    this.fontWeight = FontWeight.bold,
    this.fontFamily,
    this.fontSize = 16,
    this.upperCase = false}) {
  //assert(numberLetters! > 0);
}