mirror of
https://github.com/gskinnerTeam/flutter-wonderous-app.git
synced 2025-06-01 06:09:09 +08:00
Initial public commit
This commit is contained in:
12
lib/logic/unsplash_logic.dart
Normal file
12
lib/logic/unsplash_logic.dart
Normal file
@ -0,0 +1,12 @@
|
||||
import 'package:wonders/common_libs.dart';
|
||||
import 'package:wonders/logic/data/unsplash_photo_data.dart';
|
||||
import 'package:wonders/logic/unsplash_service.dart';
|
||||
|
||||
class UnsplashLogic {
|
||||
final Map<String, List<String>> _idsByCollection = UnsplashPhotoData.photosByCollectionId;
|
||||
|
||||
UnsplashService get service => GetIt.I.get<UnsplashService>();
|
||||
|
||||
List<String>? getCollectionPhotos(String collectionId) => _idsByCollection[collectionId];
|
||||
|
||||
}
|
Reference in New Issue
Block a user