This commit is contained in:
Mehul Ahal 2022-12-20 20:29:46 +01:00
parent 193ae3b0ea
commit 3e374d24f6
13 changed files with 126 additions and 3 deletions

View file

@ -0,0 +1,11 @@
import 'dart:async';
import '../data/models/image_model.dart';
/// Interface for implementing image-fetching strategies, specific to a resource location on the internet.
///
/// Since I used a site that was more obscure than the ones in the examples, this (otherwise pointless
/// and convoluting) interface is for adding a bit of flexibility to change strategy to some other site.
abstract class ImagesApi {
FutureOr<Iterable<ImageModel>> fetchImageUri({required String token});
}