toUTF8 method

List<int>? toUTF8()

Implementation

List<int>? toUTF8() {
  try {
    return utf8.encode(this);
  } catch (e) {
    $debugPrint(e, "toUTF8");
    return null;
  }
}