AmDataProvider<T> constructor Null safety

AmDataProvider<T>(
  1. {T? initialData,
  2. 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.