create property

N Function(BuildContext context)? create
final

A function that creates a new notifier instance.

This function is called when a new notifier needs to be created. It receives the BuildContext and should return a new notifier instance.

Only used with the default constructor. Set to null when using NotifierRegister.value.

Implementation

final N Function(BuildContext context)? create;