SpWML constructor

SpWML(
  1. String spWML, {
  2. MainAxisAlignment mainAA = MainAxisAlignment.start,
  3. CrossAxisAlignment crossAA = CrossAxisAlignment.start,
  4. MainAxisSize mainAS = MainAxisSize.max,
  5. EdgeInsets margin = const EdgeInsets.all(0),
  6. EdgeInsets padding = const EdgeInsets.all(0),
  7. SpWMLFontStyle? spWMLStyle,
  8. SpWMLInfo? info,
  9. TextFieldManager? tfm,
  10. IndexManager? im,
  11. FlagManager? fm,
  12. MultiIndexManager? mim,
  13. MultiFlagManager? mfm,
  14. ValueManager? vm,
  15. StateManager? sm,
  16. GlobalKey<State<StatefulWidget>>? key,
})

(en)The manager class is automatically set using the sid set in the layout as a key.

(ja)レイアウトに設定されているsidをキーとして、マネージャークラスは自動設定されます。

  • spWML : SpWML text.
  • mainAA : Top level Column MainAxisAlignment.
  • crossAA : Top level Column CrossAxisAlignment.
  • mainAS : The MainAxisSize of wrap column.
  • margin : Top level Column Margin.
  • padding : Top level Column Padding.
  • spWMLStyle : Font styles. If you want to change the default style, you can change the contents of the singleton SpWMLFontManager class.
  • info : This is information object. e.g. A hint when an error occurs. It is convenient to set when nesting multiple SpWMLs.
  • tfm : The manager for textfield.
  • im : The manager for dropdownBtn and popupMenuBtn and radioBtn.
  • fm : The manager for switchBtn.
  • mim : The manager for segmentedBtn.
  • mfm : The manager for checkbox.
  • vm : The manager for progressIndicator and slider.
  • sm : The manager for all widget state. If this is not null, other managers will be disabled.

Implementation

SpWML(this.spWML,
    {this.mainAA = MainAxisAlignment.start,
    this.crossAA = CrossAxisAlignment.start,
    this.mainAS = MainAxisSize.max,
    this.margin = const EdgeInsets.all(0),
    this.padding = const EdgeInsets.all(0),
    SpWMLFontStyle? spWMLStyle,
    this.info,
    this.tfm,
    this.im,
    this.fm,
    this.mim,
    this.mfm,
    this.vm,
    this.sm,
    GlobalKey? key})
    : style = spWMLStyle ?? SpWMLFontStyleManager().style,
      super(key: key);