GalPlatform class abstract base

The platform interface of gal.

Gal calls instance. Platform implementations and tests extend this class and set instance to their own implementation. Methods that are not overridden throw UnimplementedError.

See: PR

Constructors

GalPlatform()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

hasPermission({bool toAlbum = false}) → Future<bool>
Called by Gal.hasPermission.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() → Future<void>
Called by Gal.open.
putImage(String path, {String? album}) → Future<void>
Called by Gal.putImage.
putImageBytes(Uint8List bytes, {String? album, required String name}) → Future<void>
Called by Gal.putImageBytes.
putVideo(String path, {String? album}) → Future<void>
Called by Gal.putVideo.
requestPermission({bool toAlbum = false}) → Future<bool>
Called by Gal.requestPermission.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ↔ GalPlatform
The implementation that Gal calls. Defaults to the method channel.
getter/setter pair