discontinuedPackage androssy_widgets has been discontinued.

attach method

  1. @override
TextViewController attach(
  1. YMRView<ViewController> view, {
  2. int? maxCharacters,
  3. int? maxLines,
  4. double? letterSpacing,
  5. double? lineSpacingExtra,
  6. double? wordSpacing,
  7. String? ellipsizeText,
  8. bool? ellipsizeVisibility,
  9. double? ellipsizeLetterSpace,
  10. Color? ellipsizeTextColor,
  11. double? ellipsizeTextSize,
  12. FontStyle? ellipsizeTextStyle,
  13. FontWeight? ellipsizeTextWeight,
  14. String? fontFamily,
  15. FontStyle? fontStyle,
  16. FontWeight? fontWeight,
  17. String? text,
  18. TextAlign? textAlign,
  19. Color? textColor,
  20. TextDecoration? textDecoration,
  21. Color? textDecorationColor,
  22. TextDecorationStyle? textDecorationStyle,
  23. double? textDecorationThickness,
  24. TextDirection? textDirection,
  25. TextLeadingDistribution? textLeadingDistribution,
  26. TextOverflow? textOverflow,
  27. double? textSize,
  28. List<TextSpan>? textSpans,
  29. TextStyle? textStyle,
})
override

Implementation

@override
TextViewController attach(
  YMRView view, {
  int? maxCharacters,
  int? maxLines,
  double? letterSpacing,
  double? lineSpacingExtra,
  double? wordSpacing,
  String? ellipsizeText,
  bool? ellipsizeVisibility,
  double? ellipsizeLetterSpace,
  Color? ellipsizeTextColor,
  double? ellipsizeTextSize,
  FontStyle? ellipsizeTextStyle,
  FontWeight? ellipsizeTextWeight,
  String? fontFamily,
  FontStyle? fontStyle,
  FontWeight? fontWeight,
  String? text,
  TextAlign? textAlign,
  Color? textColor,
  TextDecoration? textDecoration,
  Color? textDecorationColor,
  TextDecorationStyle? textDecorationStyle,
  double? textDecorationThickness,
  TextDirection? textDirection,
  TextLeadingDistribution? textLeadingDistribution,
  TextOverflow? textOverflow,
  double? textSize,
  List<TextSpan>? textSpans,
  TextStyle? textStyle,
}) {
  super.attach(view);

  this.maxCharacters = maxCharacters ?? this.maxCharacters;
  this.maxLines = maxLines ?? this.maxLines;

  this.letterSpacing = letterSpacing ?? this.letterSpacing;
  this.lineSpacingExtra = lineSpacingExtra ?? this.lineSpacingExtra;
  this.wordSpacing = wordSpacing ?? this.wordSpacing;

  this.ellipsizeVisibility = ellipsizeVisibility ?? this.ellipsizeVisibility;
  this.ellipsizeLetterSpace =
      ellipsizeLetterSpace ?? this.ellipsizeLetterSpace;
  this.ellipsizeText = ellipsizeText ?? this.ellipsizeText;
  this.ellipsizeTextColor = ellipsizeTextColor ?? this.ellipsizeTextColor;
  this.ellipsizeTextSize = ellipsizeTextSize ?? this.ellipsizeTextSize;
  this.ellipsizeTextStyle = ellipsizeTextStyle ?? this.ellipsizeTextStyle;
  this.ellipsizeTextWeight = ellipsizeTextWeight ?? this.ellipsizeTextWeight;

  this.fontFamily = fontFamily ?? this.fontFamily;
  this.fontStyle = fontStyle ?? this.fontStyle;
  this.fontWeight = fontWeight ?? this.fontWeight;

  this.text = text ?? this.text;
  this.textAlign = textAlign ?? this.textAlign;
  this.textColor = textColor ?? this.textColor;
  this.textDecoration = textDecoration ?? this.textDecoration;
  this.textDecorationColor = textDecorationColor ?? this.textDecorationColor;
  this.textDecorationStyle = textDecorationStyle ?? this.textDecorationStyle;
  this.textDecorationThickness =
      textDecorationThickness ?? this.textDecorationThickness;
  this.textDirection = textDirection ?? this.textDirection;
  this.textLeadingDistribution =
      textLeadingDistribution ?? this.textLeadingDistribution;
  this.textOverflow = textOverflow ?? this.textOverflow;
  this.textSize = textSize ?? this.textSize;
  this.textSpans = textSpans ?? this.textSpans;
  this.textStyle = textStyle ?? this.textStyle;
  return this;
}