FileInput constructor

FileInput({
  1. String? label,
  2. String? name,
  3. String? accept,
  4. bool multiple = false,
  5. bool required = false,
  6. bool disabled = false,
  7. String? error,
  8. FormErrors? errors,
  9. String? helpText,
  10. String? className,
  11. Map<String, Object?> props = const {},
  12. Map<String, Object?> inputProps = const {},
  13. Map<String, Object?> style = const {},
  14. Map<String, Object?> inputStyle = const {},
  15. DartStyle? dartStyle,
  16. void onChanged(
    1. Object event
    )?,
})

Creates a file input field.

Implementation

FileInput({
  super.label,
  super.name,
  String? accept,
  bool multiple = false,
  super.required = false,
  super.disabled = false,
  super.error,
  super.errors,
  super.helpText,
  super.className,
  super.props = const {},
  Map<String, Object?> inputProps = const {},
  super.style = const {},
  super.inputStyle = const {},
  super.dartStyle,
  super.onChanged,
}) : super(
        type: 'file',
        inputProps: {
          ...inputProps,
          if (accept != null) 'accept': accept,
          if (multiple) 'multiple': true,
        },
      );