MyText constructor
MyText(
- String? data, {
- Key? key,
- TextStyle? style,
- TextAlign? textAlign,
- TextDirection? textDirection,
- TextOverflow? overflow,
- bool? softWrap,
- Locale? locale,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- Color? color,
- double? fontSize,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- double? height,
- double? letterSpacing,
- double? wordSpacing,
- TextBaseline? textBaseline,
- TextLeadingDistribution? leadingDistribution,
- Paint? foreground,
- Paint? background,
- List<
Shadow> ? shadows, - List<
FontFeature> ? fontFeatures, - TextDecoration? decoration,
- Color? decorationColor,
- TextDecorationStyle? decorationStyle,
- double? decorationThickness,
Creates a customized Text widget using the default body text style from the theme. This is the default constructor.
Implementation
factory MyText(
String? data, {
Key? key,
TextStyle? style,
TextAlign? textAlign,
TextDirection? textDirection,
TextOverflow? overflow,
bool? softWrap,
Locale? locale,
int? maxLines,
String? semanticsLabel,
TextWidthBasis? textWidthBasis,
TextHeightBehavior? textHeightBehavior,
Color? color,
double? fontSize,
FontWeight? fontWeight,
FontStyle? fontStyle,
double? height,
double? letterSpacing,
double? wordSpacing,
TextBaseline? textBaseline,
TextLeadingDistribution? leadingDistribution,
Paint? foreground,
Paint? background,
List<Shadow>? shadows,
List<FontFeature>? fontFeatures,
TextDecoration? decoration,
Color? decorationColor,
TextDecorationStyle? decorationStyle,
double? decorationThickness,
}) =>
MyText._(
data,
null,
key: key,
style: style,
textAlign: textAlign,
textDirection: textDirection,
overflow: overflow,
softWrap: softWrap,
locale: locale,
maxLines: maxLines,
semanticsLabel: semanticsLabel,
textWidthBasis: textWidthBasis,
textHeightBehavior: textHeightBehavior,
color: color,
fontSize: fontSize,
fontWeight: fontWeight,
fontStyle: fontStyle,
height: height,
letterSpacing: letterSpacing,
wordSpacing: wordSpacing,
textBaseline: textBaseline,
leadingDistribution: leadingDistribution,
foreground: foreground,
background: background,
shadows: shadows,
fontFeatures: fontFeatures,
decoration: decoration,
decorationColor: decorationColor,
decorationStyle: decorationStyle,
decorationThickness: decorationThickness,
);