BadText.selectable constructor
const
BadText.selectable(
- String text, {
- Key? key,
- String? fontFamily,
- Color? color,
- double fontSize = 16,
- FontWeight fontWeight = FontWeight.w400,
- double? lineHeight,
- bool underline = false,
- bool italic = false,
- double letterSpacing = 0.0,
- List<
Shadow> ? shadows, - TextAlign textAlign = TextAlign.start,
- TextDirection textDirection = TextDirection.ltr,
- int? maxLines,
NOTE: if maxLines
is specified, the text may scroll horizontally.
Implementation
const BadText.selectable(
this.text, {
super.key,
this.fontFamily,
this.color,
this.fontSize = 16,
this.fontWeight = FontWeight.w400,
double? lineHeight,
this.underline = false,
this.italic = false,
this.letterSpacing = 0.0,
this.shadows,
this.textAlign = TextAlign.start,
this.textDirection = TextDirection.ltr,
this.maxLines,
}) : selectable = true,
lineHeight = lineHeight ?? fontSize * 1.2,
overflow = null;