NomoText constructor
const
NomoText(- String text,
- {dynamic key,
- dynamic style,
- dynamic textAlign,
- dynamic textDirection,
- dynamic color,
- dynamic fontWeight,
- dynamic overflow,
- int? maxLines,
- bool? fitHeight,
- List<double>? fontSizes,
- double decreaseBy = 1,
- double minFontSize = 6}
)
Implementation
const NomoText(
this.text, {
super.key,
this.style,
this.textAlign,
this.textDirection,
this.color,
this.fontWeight,
this.overflow,
this.maxLines,
this.fitHeight,
this.fontSizes,
this.decreaseBy = 1,
this.minFontSize = 6,
}) : assert(
fontSizes == null || fontSizes.length > 0,
"fontSizes must be a list of at least one value",
),
assert(
(fitHeight != null && fontSizes == null && maxLines == null) ||
fitHeight == null,
"Cant use FontSizes || maxLines with fitHeight",
);