SubjectsRepository constructor Null safety

SubjectsRepository(
  1. {required StorageProvider storageProvider,
  2. SubjectsProvider? provider}
)

Implementation

SubjectsRepository({
  required StorageProvider storageProvider,
  SubjectsProvider? provider,
}) {
  _provider = provider ?? SubjectsProvider(storageProvider: storageProvider);
}