Photo class

Representation of a user image

Constructors

Photo(Uint8List bytes)
Photo.fromMap(Map map)
factory

Properties

bytes Uint8List
An Uint8List containing the raw bytes of the image
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asProvider() ImageProvider<Object>
Returns the Image as an ImageProvider See Image
asResizedProvider({double scale = 1.0, int? cacheWidth, int? cacheHeight}) ImageProvider<Object>
Returns the Image as an ResizeImage See Image.memory
asWidget({double scale = 1.0, int? cacheWidth, int? cacheHeight}) Image
Returns the Image as an Image See Image.memory
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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