AmDataProvider<T> constructor
Null safety
- {T? initialData,
- String? providerId}
Creates a provider. You may initialize its data or leave it null. If you want to access this provider in other pages you should create it with Id.