CardSettingsSelectionPicker constructor

CardSettingsSelectionPicker({
  1. Key? key,
  2. String? initialValue,
  3. FormFieldSetter<String>? onSaved,
  4. FormFieldValidator<String>? validator,
  5. AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
  6. bool enabled = true,
  7. String label = 'Label',
  8. bool visible = true,
  9. ValueChanged<String>? onChanged,
  10. Widget? requiredIndicator,
  11. TextAlign? labelAlign,
  12. double? labelWidth,
  13. Icon? icon,
  14. TextAlign? contentAlign,
  15. String? hintText,
  16. required List<String> options,
  17. List<Icon>? icons,
  18. List<String>? values,
  19. bool? showMaterialonIOS,
  20. EdgeInsetsGeometry? fieldPadding,
})

Implementation

CardSettingsSelectionPicker({
  Key? key,
  String? initialValue,
  FormFieldSetter<String>? onSaved,
  FormFieldValidator<String>? validator,
  // bool autovalidate: false,
  AutovalidateMode autovalidateMode: AutovalidateMode.onUserInteraction,
  this.enabled = true,
  this.label = 'Label',
  this.visible = true,
  this.onChanged,
  this.requiredIndicator,
  this.labelAlign,
  this.labelWidth,
  this.icon,
  this.contentAlign,
  this.hintText,
  required this.options,
  this.icons,
  this.values,
  this.showMaterialonIOS,
  this.fieldPadding,
})  : assert(values == null || options.length == values.length,
          "If you provide 'values', they need the same number as 'options'"),
      assert(icons == null || options.length == icons.length,
          "If you provide 'icons', they need the same number as 'options'"),
      super(
          key: key,
          initialValue: initialValue ?? null,
          onSaved: onSaved,
          validator: validator,
          // autovalidate: autovalidate,
          autovalidateMode: autovalidateMode,
          builder: (FormFieldState<String> field) =>
              (field as _CardSettingsListPickerState)._build(field.context));