onFileChange method
Implementation
void onFileChange(dom.Event event) {
_fileInput = event.target as dom.FileUploadInputElement;
try {
if (_fileInput!.files!.isNotEmpty) _processFile(_fileInput!.files!.last);
} on Exception catch (e) {
invalidFile = true;
print(e);
}
}