upgrade min sdk; run formatter
This commit is contained in:
@@ -10,8 +10,9 @@ class FetchArticlesController extends _$FetchArticlesController {
|
||||
Future<void> fetchAllArticles() async {
|
||||
state = const AsyncLoading();
|
||||
state = await AsyncValue.guard(() async {
|
||||
final feeds =
|
||||
await ref.read(feedRepositoryProvider.notifier).getAllFeeds();
|
||||
final feeds = await ref
|
||||
.read(feedRepositoryProvider.notifier)
|
||||
.getAllFeeds();
|
||||
|
||||
await Future.wait(
|
||||
feeds.map((feed) async {
|
||||
|
||||
@@ -11,19 +11,19 @@ String _$fetchArticlesControllerHash() =>
|
||||
|
||||
/// See also [FetchArticlesController].
|
||||
@ProviderFor(FetchArticlesController)
|
||||
final fetchArticlesControllerProvider = AutoDisposeNotifierProvider<
|
||||
FetchArticlesController,
|
||||
AsyncValue<void>
|
||||
>.internal(
|
||||
FetchArticlesController.new,
|
||||
name: r'fetchArticlesControllerProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product')
|
||||
final fetchArticlesControllerProvider =
|
||||
AutoDisposeNotifierProvider<
|
||||
FetchArticlesController,
|
||||
AsyncValue<void>
|
||||
>.internal(
|
||||
FetchArticlesController.new,
|
||||
name: r'fetchArticlesControllerProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$fetchArticlesControllerHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$FetchArticlesController = AutoDisposeNotifier<AsyncValue<void>>;
|
||||
// ignore_for_file: type=lint
|
||||
|
||||
Reference in New Issue
Block a user