createElement method

  1. @override
ChangeNotifierProviderElement<NotifierT> createElement()
override

An internal method that defines how a provider behaves.

Implementation

@override
ChangeNotifierProviderElement<NotifierT> createElement() {
  return ChangeNotifierProviderElement<NotifierT>._(this);
}