Blob class Null safety

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.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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