MyCustomText constructor

const MyCustomText(
  1. String? text,
  2. Color textColor, {
  3. Key? key,
  4. num size = 14.0,
  5. FontWeight? weight,
  6. int grayLevel = 1,
  7. int maxLines = 1,
  8. bool alignCenter = false,
  9. String? fontFamily,
})

Implementation

const MyCustomText(this.text, this.textColor,
    {Key? key,
    this.size = 14.0,
    this.weight,
    this.grayLevel = 1,
    this.maxLines = 1,
    this.alignCenter = false,
    this.fontFamily})
    : super(key: key);