Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
final valueProvider = Provider(
(ref) => 1,
);
void main() {
runApp(
ProviderScope(
overrides: [
valueProvider.overrideWithValue(2),
],
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment