toCode method

Code toCode()

Implementation

Code toCode() => Code(
      isValid == 1,
      text == nullptr ? null : text.cast<Utf8>().toDartString(),
      bytes == nullptr
          ? null
          : Uint8List.fromList(bytes.cast<Int8>().asTypedList(length)),
      format,
      pos == nullptr ? null : pos.ref.toPosition(),
    );