onStatusChanged method
override this method if you want to listen status changed
Implementation
@override
void onStatusChanged(FormeFieldChangedStatus<List<FormeFile>> status) {
super.onStatusChanged(status);
if (status.isValueChanged) {
_gridController.value = _convert(status.value);
if (oldValue != null) {
final List<UploadableFormeFile> removed = oldValue!.value
.whereType<UploadableFormeFile>()
.where((element) => !status.value.contains(element))
.toList();
for (final UploadableFormeFile file in removed) {
file._uploadController?.cancel();
}
}
}
}