toBuild method

dynamic toBuild()

Implementation

toBuild(){

  return Text(name.toString(),
    key:key,
    style: style.copyWith(
      inherit: _inherit,
      color: _textColor,
      fontWeight: _fontWeight,
      fontSize: _fontSize,
      letterSpacing: _letterSpacing,
      wordSpacing: _wordSpacing,
      textBaseline: _textBaseline,
      height: _height,
      leadingDistribution: _leadingDistribution,
      locale: _locale,
      foreground: _foreground,
      background: _background,
      shadows: _shadows,
      fontFeatures: _fontFeatures,
      fontVariations: _fontVariations,
      decoration: _decoration,
      decorationColor: _decorationColor,
      decorationStyle: _decorationStyle,
      decorationThickness: _decorationThickness,
      // debugLabel: _debugLabel,
      fontFamily: _fontFamily,
      fontFamilyFallback: _fontFamilyFallback,
      package: _package,
      overflow: _overflow,
    ),
    strutStyle: StrutStyle(
      fontFamily: _fontFamilyStrut,
      fontFamilyFallback: _fontFamilyFallbackStrut,
      fontSize: _fontSizeStrut,
      height: _heightStrut,
      leadingDistribution: _leadingDistributionStrut,
      leading: _leading,
      fontWeight: _fontWeightStrut,
      fontStyle: _fontStyle,
      forceStrutHeight: _forceStrutHeight,
      // debugLabel: _debugLabel,
      package: _packageStrut,
    ),
    textAlign: _textAlign,
    textDirection: _textDirection,
    locale: _locale,
    softWrap: _softWrap,
    overflow: _overflow,
    maxLines: _maxLines,
    semanticsLabel: _semanticsLabel,
    textWidthBasis: _textWidthBasis,
    textHeightBehavior: _textHeightBehavior,
    selectionColor: _selectionColor,
    textScaleFactor: _textScaler,
  );
}