Skip to content

Instantly share code, notes, and snippets.

@daiki1003
Last active October 2, 2022 10:40
Embed
What would you like to do?
final someRepositoryProvider = Provider(SomeRepository.new);
class SomeRepository {
const SomeRepository(this._read);
final Reader _read;
Future<void> fetch() async {
final response = _read(dioProvider).get(...);
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment