file method

RequestFile? file(
  1. String key
)

The uploaded file of the key, or null when it is not a file. For a field with many files, use input.

RequestFile? photo = req.file('photo');

Implementation

RequestFile? file(String key) {
  dynamic val = _find(key).value;
  return val is RequestFile ? val : null;
}