toEncode method

Encode toEncode()

Implementation

Encode toEncode() => Encode(
      isValid == 1,
      format,
      text == nullptr ? null : text.cast<Utf8>().toDartString(),
      data == nullptr
          ? null
          : Uint32List.fromList(data.cast<Int8>().asTypedList(length)),
      length,
      error == nullptr ? null : error.cast<Utf8>().toDartString(),
    );