CardSettingsListPicker constructor

CardSettingsListPicker({
  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<String>? values,
  18. bool? showMaterialonIOS,
  19. EdgeInsetsGeometry? fieldPadding,
})

Implementation

CardSettingsListPicker({
  Key? key,
  String? initialValue,
  FormFieldSetter<String?>? onSaved,
  FormFieldValidator<String?>? validator,
  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.values,
  this.showMaterialonIOS,
  this.fieldPadding,
})  : assert(values == null || options.length == values.length,
          "If you provide 'values', they need the same number as 'options'"),
      super(
          key: key,
          initialValue: initialValue ?? null,
          onSaved: onSaved,
          validator: validator,
          autovalidateMode: autovalidateMode,
          builder: (FormFieldState<String> field) =>
              (field as _CardSettingsListPickerState)._build(field.context));