feat: product variant
This commit is contained in:
@@ -19,13 +19,5 @@ class OutletLoaderBloc extends Bloc<OutletLoaderEvent, OutletLoaderState> {
|
||||
(r) => emit(_Loaded(r.data?.outlets ?? [])),
|
||||
);
|
||||
});
|
||||
on<_CurrentOutlet>((event, emit) async {
|
||||
emit(const _LoadingDetail());
|
||||
final result = await _outletRemoteDataSource.currentOutlet();
|
||||
result.fold(
|
||||
(l) => emit(_ErrorDetail(l)),
|
||||
(r) => emit(_LoadedDetail(r.data!)),
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user