runable
This commit is contained in:
11
.archive/product_datasource_provider.dart
Normal file
11
.archive/product_datasource_provider.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import '../../data/datasources/product_local_datasource.dart';
|
||||
|
||||
part 'product_datasource_provider.g.dart';
|
||||
|
||||
/// Provider for product local data source
|
||||
/// This is kept alive as it's a dependency injection provider
|
||||
@Riverpod(keepAlive: true)
|
||||
ProductLocalDataSource productLocalDataSource(ProductLocalDataSourceRef ref) {
|
||||
return ProductLocalDataSourceImpl();
|
||||
}
|
||||
Reference in New Issue
Block a user