WrappableText constructor
const
WrappableText({
- Key? key,
- required TextSpan text,
- FCClear clear = FCClear.none,
- TextAlign? textAlign,
- TextDirection? textDirection,
- TextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- Locale? locale,
- StrutStyle? strutStyle,
- TextHeightBehavior? textHeightBehavior,
- double indent = 0.0,
- EdgeInsetsGeometry margin = EdgeInsets.zero,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
Creates a paragraph of rich text, that when used in a FloatColumn
can
wrap around floated siblings.
The text, clear, textAlign, indent, and textScaleFactor arguments must not be null.
The textDirection, if null, defaults to the ambient Directionality
,
which in that case must not be null.
Implementation
const WrappableText({
this.key,
required this.text,
this.clear = FCClear.none,
this.textAlign,
this.textDirection,
this.overflow,
this.textScaleFactor,
this.maxLines,
this.locale,
this.strutStyle,
this.textHeightBehavior,
this.indent = 0.0,
this.margin = EdgeInsets.zero,
this.padding = EdgeInsets.zero,
}) : assert(
// ignore: unnecessary_null_comparison
text != null,
'A non-null TextSpan must be provided to a WrappableText.',
),
assert(maxLines == null || maxLines > 0);