createProvider method
Create a SaveProvider that is identified by an arg.
If the arg is same then the providers,
then the providers will create the same key.
Implementation
SaveProvider<T> createProvider(A arg) {
final provider = SaveReactiveProvider<T>.identifiedBy(
($) => build($, arg),
identification: [
this,
arg,
],
autoDispose: autoDispose,
onDispose: (last) => onDispose?.call(
arg,
last,
),
);
return SaveReactiveProviderFromFamily<T, A>(
provider: provider,
familyKey: familyKey,
arg: arg,
);
}