updateWithString method

void updateWithString(
  1. String? data
)

Converts data to a Uint8List and passes it to update().

Implementation

void updateWithString(String? data) {
  assert(data != null);

  update(Uint8List.fromList(data!.codeUnits));
}