set method
NikuSelectableText
set({
- Color? color,
- Color? backgroundColor,
- double? fontSize,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- double? letterSpacing,
- double? wordSpacing,
- TextAlign? textAlign,
- double? height,
- Paint? foreground,
- Paint? background,
- List<
Shadow> ? shadows, - List<
FontFeature> ? fontFeatures, - TextDecoration? textDecoration,
- Color? textDecorationColor,
- double? textDecorationThickness,
- String? fontFamily,
- List<
String> ? fontFamilyFallback, - TextBaseline? textBaseline,
- TextDirection? textDirection,
- double? textScaleFactor,
- int? maxLines,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- double mt = 0,
- double ml = 0,
- double mb = 0,
- double mr = 0,
Implementation
NikuSelectableText set({
Color? color,
Color? backgroundColor,
double? fontSize,
FontWeight? fontWeight,
FontStyle? fontStyle,
double? letterSpacing,
double? wordSpacing,
TextAlign? textAlign,
double? height,
Paint? foreground,
Paint? background,
List<Shadow>? shadows,
List<FontFeature>? fontFeatures,
TextDecoration? textDecoration,
Color? textDecorationColor,
double? textDecorationThickness,
String? fontFamily,
List<String>? fontFamilyFallback,
TextBaseline? textBaseline,
TextDirection? textDirection,
double? textScaleFactor,
int? maxLines,
TextWidthBasis? textWidthBasis,
TextHeightBehavior? textHeightBehavior,
double mt = 0,
double ml = 0,
double mb = 0,
double mr = 0,
}) {
_color = color;
_backgroundColor = backgroundColor;
_fontSize = fontSize;
_fontWeight = fontWeight;
_fontStyle = fontStyle;
_letterSpacing = letterSpacing;
_wordSpacing = wordSpacing;
_textAlign = textAlign;
_height = height;
_foreground = foreground;
_background = background;
_shadows = shadows;
_fontFeatures = fontFeatures;
_textDecoration = textDecoration;
_textDecorationColor = textDecorationColor;
_textDecorationThickness = textDecorationThickness;
_fontFamily = fontFamily;
_fontFamilyFallback = fontFamilyFallback;
_textBaseline = textBaseline;
_textDirection = textDirection;
_textScaleFactor = textScaleFactor;
_maxLines = maxLines;
_textWidthBasis = textWidthBasis;
_textHeightBehavior = textHeightBehavior;
super.mt(mt);
super.ml(ml);
super.mb(mb);
super.mr(mr);
return this;
}