ImageRef class
Constructors
ImageRef.fromJson (Map <String , dynamic > source )
Creates ImageRef from json representation with upgrading serialized reference to a strong one
factory
Methods
clear ()
→ void
Releases native resources stored by the ref.
If two different ImageRef objects have the same uniqueId both of them become cleared.
clone ()
→ ImageRef ?
Creates a deep copy of the image.
encodeImage ({EncodeImageOptions ? options })
→ Uint8List
Returns the stored image encoded with the given options.
encodeImageInPlace ()
→ void
hibernate ()
→ void
Compresses ImageRef and stores it either on disk or in memory according to global settings.
info ()
→ ImageInfo
Information about stored image.
isRetained ()
→ bool
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release ()
→ void
Releases strong reference to the image
override
retain ()
→ void
inherited
saveImage (String path , {SaveImageOptions ? options })
→ bool
Saves the stored image with the given options.
toJson ()
→ Map <String , dynamic >
Converts ImageRef to json representation with acquiring serialized reference to the native resource.
You must eventually call deserialize, otherwise the reference will leak
toString ()
→ String
A string representation of this object.
inherited
barcode_scanner 7.0.0-alpha03