createElement method Null safety

  1. @override
StreamProviderElement<State> createElement()
override

An internal method that defines how a provider behaves.

Implementation

@override
StreamProviderElement<State> createElement() => StreamProviderElement(this);