TextExt extension
Provides a set of utility methods to work with text in a more expressive way.
- on
Properties
- centered → Text
-
Available on Text, provided by the TextExt extension
Centers this Text horizontally.no setter - left → Text
-
Available on Text, provided by the TextExt extension
Aligns this Text to the left.no setter - right → Text
-
Available on Text, provided by the TextExt extension
Aligns this Text to the right.no setter
Methods
-
color(
Color color) → Text -
Available on Text, provided by the TextExt extension
Applies the provided data to this Text. -
copyWith(
{Key? key, String? data, TextStyle? style, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, Color? selectionColor, StrutStyle? strutStyle, TextHeightBehavior? textHeightBehavior, TextScaler? textScaler}) → Text -
Available on Text, provided by the TextExt extension
Copies this Text while overriding the provided properties. -
key(
Key key) → Text -
Available on Text, provided by the TextExt extension
Applies the providedkey
to this Text. -
styled(
TextStyle style, {bool merge = false}) → Text -
Available on Text, provided by the TextExt extension
Applies the providedstyle
to this Text.