FileFieldState constructor

FileFieldState(
  1. File? value, {
  2. required String label,
  3. List<ValidationRule<File?>> rules = const [],
})

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);