LocalImageProviderPlatform class abstract

The interface that implementations of local_image_provider must implement.

Platform implementations should extend this class rather than implement it as local_image_provider does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added LocalImageProviderPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • LocalImageProviderPlatform
Implementers

Constructors

LocalImageProviderPlatform()
Constructs a LocalImageProviderPlatform.

Properties

cacheAll bool
Returns true if all DeviceImage should be cached in the global Flutter imageCache.
no setter
hashCode int
The hash code for this object.
no setterinherited
maxCacheDimension int
The maximum size at which a DeviceImage should be cached in the global Flutter imageCache.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cleanup() Future
findAlbums(LocalAlbumType localAlbumType) Future<List<String>>
findImagesInAlbum(String albumId, int maxImages) Future<List<String>>
findLatest(int maxImages) Future<List<String>>
hasLimitedPermission() Future<bool>
hasPermission() Future<bool>
imageBytes(String id, int height, int width, {int? compression}) Future<Uint8List?>
initialize() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
videoFile(String id) Future<String>

Operators

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

Static Properties

instance LocalImageProviderPlatform
The default instance of LocalImageProviderPlatform to use.
getter/setter pair

Constants

cacheAtAnySize → const int
cacheSuggestedCutoff → const int