ExpandedText constructor

ExpandedText(
  1. String text, {
  2. Key? key,
  3. TextStyle? style,
  4. Alignment alignment = Alignment.centerLeft,
  5. int flex = 1,
  6. Color? backgroundColor,
  7. Decoration? decoration,
  8. EdgeInsetsGeometry padding = EdgeInsets.zero,
  9. EdgeInsetsGeometry textPadding = EdgeInsets.zero,
})

Implementation

ExpandedText(this.text,
    {super.key,
    TextStyle? style,
    this.alignment = Alignment.centerLeft,
    this.flex = 1,
    this.backgroundColor,
    this.decoration,
    this.padding = EdgeInsets.zero,
    this.textPadding = EdgeInsets.zero})
    : style = style ?? Get.find<AppFonts>().S();