prefixStyle method

NikuTextField prefixStyle(
  1. TextStyle textStyle
)

The style to use for the prefixText

Equivalent to

TextFormField(
  decoration: InputDecoration(
    prefixStyle: input
  )
)

Implementation

NikuTextField prefixStyle(TextStyle textStyle) {
  // Input Label Style
  _prefix_color = textStyle.color;
  _prefix_backgroundColor = textStyle.backgroundColor;
  _prefix_fontSize = textStyle.fontSize;
  _prefix_fontWeight = textStyle.fontWeight;
  _prefix_fontStyle = textStyle.fontStyle;
  _prefix_letterSpacing = textStyle.letterSpacing;
  _prefix_wordSpacing = textStyle.wordSpacing;
  _prefix_height = textStyle.height;
  _prefix_foreground = textStyle.foreground;
  _prefix_background = textStyle.background;
  _prefix_shadows = textStyle.shadows;
  _prefix_fontFeatures = textStyle.fontFeatures;
  _prefix_textDecoration = textStyle.decoration;
  _prefix_textDecorationColor = textStyle.decorationColor;
  _prefix_textDecorationThickness = textStyle.decorationThickness;
  _prefix_fontFamily = textStyle.fontFamily;
  _prefix_fontFamilyFallback = textStyle.fontFamilyFallback;
  _prefix_textBaseline = textStyle.textBaseline;

  return this;
}