attach method

  1. @override
Widget? attach(
  1. BuildContext context,
  2. T controller
)
override

Implementation

@override
Widget? attach(BuildContext context, T controller) {
  return RawTextView(
    ellipsis: controller.ellipsis,
    letterSpacing: controller.letterSpacing,
    lineHeight: controller.spacingFactor,
    locale: controller.locale,
    maxLines: controller.maxLines,
    selectionColor: controller.selectionColor,
    semanticsLabel: controller.semanticsLabel,
    softWrap: controller.softWrap,
    strutStyle: controller.strutStyle,
    text: controller.text,
    textAlign: controller.textAlign,
    textColor: controller.textColor,
    textDecoration: controller.textDecoration,
    textDecorationColor: controller.textDecorationColor,
    textDecorationStyle: controller.textDecorationStyle,
    textDecorationThickness: controller.textDecorationThickness,
    textDirection: controller.textDirection,
    textFontFamily: controller.textFontFamily,
    textFontStyle: controller.textFontStyle,
    textFontWeight: controller.textFontWeight,
    textHeightBehavior: controller.textHeightBehavior,
    textLeadingDistribution: controller.textLeadingDistribution,
    textOverflow: controller.textOverflow,
    textSize: controller.textSize,
    textSpans: controller.textSpans,
    textStyle: controller.textStyle,
    textWidthBasis: controller.textWidthBasis,
    wordSpacing: controller.wordSpacing,
    onClick: controller.onTextClick,

    /// PREFIX
    prefixFontStyle: controller.prefixFontStyle,
    prefixFontWeight: controller.prefixFontWeight,
    prefixText: controller.prefixText,
    prefixTextColor: controller.prefixTextColor,
    prefixTextDecoration: controller.prefixTextDecoration,
    prefixTextDecorationColor: controller.prefixTextDecorationColor,
    prefixTextDecorationStyle: controller.prefixTextDecorationStyle,
    prefixTextDecorationThickness: controller.prefixTextDecorationThickness,
    prefixTextLetterSpace: controller.prefixTextLetterSpace,
    prefixTextSize: controller.prefixTextSize,
    prefixTextStyle: controller.prefixTextStyle,
    prefixTextVisible: controller.prefixTextVisible,
    onPrefixClick: controller.onPrefixClick,

    /// SUFFIX
    suffixFontStyle: controller.suffixFontStyle,
    suffixFontWeight: controller.suffixFontWeight,
    suffixText: controller.suffixText,
    suffixTextColor: controller.suffixTextColor,
    suffixTextDecoration: controller.suffixTextDecoration,
    suffixTextDecorationColor: controller.suffixTextDecorationColor,
    suffixTextDecorationStyle: controller.suffixTextDecorationStyle,
    suffixTextDecorationThickness: controller.suffixTextDecorationThickness,
    suffixTextLetterSpace: controller.suffixTextLetterSpace,
    suffixTextSize: controller.suffixTextSize,
    suffixTextStyle: controller.suffixTextStyle,
    suffixTextVisible: controller.suffixTextVisible,
    onSuffixClick: controller.onSuffixClick,
  );
}