Created
May 1, 2019 18:59
-
-
Save fabiomsr/37760898edbce7f0b01a22c2e828b87a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static ValueListenable<int> of(BuildContext context) { | |
return (context.inheritFromWidgetOfExactType(CounterListenableProvider) | |
as CounterListenableProvider) | |
.counter; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment