set method

NikuSelectableText set({
  1. Color? color,
  2. Color? backgroundColor,
  3. double? fontSize,
  4. FontWeight? fontWeight,
  5. FontStyle? fontStyle,
  6. double? letterSpacing,
  7. double? wordSpacing,
  8. TextAlign? textAlign,
  9. double? height,
  10. Paint? foreground,
  11. Paint? background,
  12. List<Shadow>? shadows,
  13. List<FontFeature>? fontFeatures,
  14. TextDecoration? textDecoration,
  15. Color? textDecorationColor,
  16. double? textDecorationThickness,
  17. String? fontFamily,
  18. List<String>? fontFamilyFallback,
  19. TextBaseline? textBaseline,
  20. TextDirection? textDirection,
  21. double? textScaleFactor,
  22. int? maxLines,
  23. TextWidthBasis? textWidthBasis,
  24. TextHeightBehavior? textHeightBehavior,
  25. double mt = 0,
  26. double ml = 0,
  27. double mb = 0,
  28. 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;
}