Blob class

Holds blob data, and can be created or accessed as either a String or a List of 8-bit integers.

When a blob which was created as a list of integers is accessed as a string, those integers are treated as UTF-8 code units (unsigned 8-bit integers).

Constructors

Blob.fromBytes(List<int> codeUnits)
Create a Blob from a list of codeUnits.
Blob.fromString(String string)
Create a Blob from a string.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
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
toBytes() List<int>
Returns the value of the blob as a list of code units.
toString() String
Returns the value of the blob as a String.
override

Operators

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