Skip to content

Instantly share code, notes, and snippets.

@daiki1003
Created November 3, 2022 02:13
Show Gist options
  • Save daiki1003/386483004b65ba462012f1cb3b45d7ed to your computer and use it in GitHub Desktop.
Save daiki1003/386483004b65ba462012f1cb3b45d7ed to your computer and use it in GitHub Desktop.
final valueProvider = Provider(
(ref) => 1,
);
void main() {
runApp(
ProviderScope(
overrides: [
valueProvider.overrideWith(
(ref) => 2,
),
],
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment