AutoSizeText constructor
const
AutoSizeText( - String text, {
- TextStyle? style,
- double minFontSize = 8.0,
- double maxFontSize = double.infinity,
- TextAlign? textAlign,
- TextDirection? textDirection,
- int? maxLines,
- TextOverflow? overflow,
- AutoSizeGroup? group,
- Key? key,
})
Implementation
const AutoSizeText(
this.text, {
this.style,
this.minFontSize = 8.0,
this.maxFontSize = double.infinity,
this.textAlign,
this.textDirection,
this.maxLines,
this.overflow,
this.group,
super.key,
}) : assert(minFontSize > 0.0),
assert(maxFontSize >= minFontSize),
assert(maxLines == null || maxLines > 0),
assert(
overflow == null || maxLines != null,
'Overflow can only be specified if maxLines is also specified.',
);