Skip to content

Instantly share code, notes, and snippets.

View ewilliams-zoot's full-sized avatar

Ezekiel Williams ewilliams-zoot

View GitHub Profile
@ewilliams-zoot
ewilliams-zoot / controller.dart
Created August 21, 2021 22:22 — forked from ricbermo/controller.dart
Repository-Provider-Controller Patter
// custom provider to improve lists performance
final currentModel = ScopedProvider<Category>(
(_) => throw UnimplementedError(),
);
// used to display snackbars
final exceptionProvider = StateProvider<CustomException>(
(_) => null,
);