Skip to content

Instantly share code, notes, and snippets.

@daiki1003
Created November 3, 2022 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daiki1003/5163388aa828dcebe9f779ae6a7cbec2 to your computer and use it in GitHub Desktop.
Save daiki1003/5163388aa828dcebe9f779ae6a7cbec2 to your computer and use it in GitHub Desktop.
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