Failure of Provider.of in finding provider as ancestor

What happens when Provider.of fails to find a Provider as an ancestor of the BuildContext used when working with the Flutter provider package?

  1. The error ProviderNotFoundException is thrown
  2. The error Provider.of failed is throw
  3. The exception noSuchMethod is thrown
  4. None of these

Related Posts

Close Bitnami banner