FileFieldState constructor
FileFieldState(
- File? value, {
- required String label,
- List<
ValidationRule< rules = const [],File?> >
Creates a new instance of FileFieldState.
value
The initial value of the file field.label
The label for the file field.rules
A list of validation rules to apply to the file field.
Implementation
FileFieldState(
File? value, {
required String label,
List<ValidationRule<File?>> rules = const [],
}) : super(value: value, label: label, rules: rules);