WrappableText constructor
const
WrappableText({
- Key? key,
- required TextSpan text,
- FCClear clear = FCClear.none,
- TextAlign? textAlign,
- TextDirection? textDirection,
- double? textScaleFactor,
- 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.textScaleFactor,
this.locale,
this.strutStyle,
this.textHeightBehavior,
this.indent = 0.0,
this.margin = EdgeInsets.zero,
this.padding = EdgeInsets.zero,
}) : assert(
text != null, // ignore: unnecessary_null_comparison
'A non-null TextSpan must be provided to a WrappableText.',
);