Ao tentar executar o exemplo da página https://cursos.alura.com.br/course/flutter-implemente-offline-first-couchbase-app/task/174196, recebi o seguinte erro:
══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
The following assertion was thrown while handling a gesture:
Tried to call Provider.of<dynamic>. This is likely a mistake and is therefore
unsupported.
If you want to expose a variable that can be anything, consider changing
`dynamic` to `Object` instead.
'package:provider/src/provider.dart':
Failed assertion: line 330 pos 7: 'T != dynamic'
Este problema só resolvi após mudar o código
context.read<CouchbaseService>().add(
data: {'id': 1, 'name': 'item', 'checked': true},
collectionName: 'checklist',
);
por
Provider.of<CouchbaseService>(context, listen: false).add(
data: {'id': 1, 'name': 'item', 'checked': true},
collectionName: 'checklist',
);