UBase64Image class

A decoded base64 image source: either a data:<mime>;base64,<payload> URI or a bare base64 payload whose bytes carry a known image signature.

Properties

bytes → Uint8List
Content as bytes in memory.
final
hashCode → int
The hash code for this object.
no setterinherited
kind → UBase64ImageKind
What the decoded bytes are.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

isBase64(String source) → bool
True when source looks like base64 image data (with or without a data: prefix).
tryParse(String source) → UBase64Image?
Decodes base64 image text and detects its kind; null when it is not base64.