fileFieldValue method

File? fileFieldValue(
  1. String fieldName
)

Retrieves the value of a file field for a specified fieldName.

This method simplifies fetching the current value of a file field.

  • Parameter fieldName The name of the file field to fetch.
  • Returns: The current value of the file field as a File, or null if not set.
  • Throws: ArgumentError if the field doesn't exist.

Implementation

File? fileFieldValue(String fieldName) {
  return fileField(fieldName).value;
}