ImagesService class Null safety

Handles fetching and storing of Images.

Since this is very simple use-case, this is the only interface. For complex (actual CRUD-based) I/O, an additional Repository layer interface can be used between ImagesService and ImagesApi.

Constructors

ImagesService({required ImagesApi imagesApi, required LocalStorageService localStorageService, required LoggingService loggingService})

Properties

firstAvailableImageIndex int
read-only
hashCode int
The hash code for this object.
read-only, inherited
imageModels Iterable<ImageModel>
read-only
initAwaiter Future
read-only
lastAvailableImageIndex int
read-only
lastQueryIsCompleted Future<void>
read-only
numberOfImages int
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

imageModelAt({required int index}) ImageModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
searchImages({required SearchOption searchOption, required String imageNamePart, bool treatAsInSequence = false}) Future<List<ImageModel>>
Performs searching on images, both locally and by a Web API endpoint.
toString() String
A string representation of this object.
inherited
updateImageFavouriteStatus({required ImageModel imageModel, required bool newFavouriteStatus}) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

locate ImagesService
read-only