ExpandedText constructor

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

Implementation

ExpandedText(this.text,
    {this.style,
    this.alignment = Alignment.centerLeft,
    this.flex = 1,
    this.bgColor,
    this.decoration,
    this.padding = EdgeInsets.zero,
    this.textPadding = EdgeInsets.zero}) {
  style ??= Get.find<AppFonts>().M();
}