removeImage method
The action for the remove image.
Implementation
@action
Future<void> removeImage({
required AssetImageInfo image,
}) async {
if (_isSending) {
return;
}
final updated = _imageFiles.toList();
updated.remove(image);
_imageFiles = ObservableList<AssetImageInfo>.of(updated);
}