FileInput constructor
FileInput({
- String? label,
- String? name,
- String? accept,
- bool multiple = false,
- bool required = false,
- bool disabled = false,
- String? error,
- FormErrors? errors,
- String? helpText,
- String? className,
- Map<
String, Object?> props = const {}, - Map<
String, Object?> inputProps = const {}, - Map<
String, Object?> style = const {}, - Map<
String, Object?> inputStyle = const {}, - DartStyle? dartStyle,
- void onChanged(
- 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,
},
);