ExpandedText constructor
ExpandedText(
- String text, {
- TextStyle? style,
- Alignment alignment = Alignment.centerLeft,
- int flex = 1,
- Color? bgColor,
- Decoration? decoration,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- 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();
}