Blob.fromString constructor

Blob.fromString(
  1. String string
)

Create a Blob from a string.

Implementation

factory Blob.fromString(String string) => Blob.fromBytes(utf8.encode(string));