In my web implementation, I don't want to download attachments to memory, since a user on my app can have thousands of attachments. So I fetch on demand.
I tried turning 'downloadAttachments' off, but that didn't seem to work. All attachments were downloaded on init.
I had to turn it off by returning an empty stream in watchAttachments instead
downloadAttachments: !kIsWeb, // not working
watchAttachments: () {
// downloadAttachments doesn't seem to work on web
if (kIsWeb) {
return Stream.value([]);
}