createElement method Null safety

  1. @override
ProviderElement<Created, Listened> createElement()
override

An internal method that defines how a provider behaves.

Implementation

@override
ProviderElement<Created, Listened> createElement() {
  return ProviderElement(this);
}