NsgText constructor

const NsgText(
  1. String text, {
  2. Key? key,
  3. EdgeInsets margin = EdgeInsets.zero,
  4. EdgeInsets padding = const EdgeInsets.all(2),
  5. TextOverflow? overflow,
  6. int? maxLines,
  7. Color? color,
  8. Color? backColor,
  9. NsgTextType? type,
  10. NsgTextStyle? style,
  11. TextAlign? textAlign,
})

Implementation

const NsgText(this.text,
    {Key? key,
    this.margin = EdgeInsets.zero,
    this.padding = const EdgeInsets.all(2),
    this.overflow,
    this.maxLines,
    this.color,
    this.backColor,
    this.type,
    this.style,
    this.textAlign})
    : super(key: key);