file method
- String key
Returns the uploaded file associated with key.
This only resolves files parsed from multipart form data.
Returns the matching UploadedFile or null when no file exists for the
given field.
Example:
final avatar = await form.file('avatar');
if (avatar != null) {
print(avatar.filename);
}
Implementation
Future<UploadedFile?> file(String key) async {
await _ensureParsed();
return _files[key];
}