FormAffixStyle constructor

const FormAffixStyle(
  1. Widget? child, {
  2. Widget? icon,
  3. Color? iconColor,
  4. BoxConstraints? iconConstraints,
})

Class for defining prefix and suffix of text form.

If you want to place a widget, use FormAffixStyle, and if you want to display text as is, create an object with FormAffixStyle.text.

icon can be placed in front of each widget.

テキストフォームのprefix、suffixを定義するためのクラス。

Widgetを設置したい場合は、FormAffixStyleを利用し、テキストをそのまま表示したい場合はFormAffixStyle.textでオブジェクトを作成します。

iconをそれぞれのWidgetの前に設置することが可能です。

Implementation

const FormAffixStyle(
  this.child, {
  this.icon,
  this.iconColor,
  this.iconConstraints,
})  : label = null,
      textStyle = null;