open method

void open(
  1. String path
)

Implementation

void open(String path) {
  final p = path.toNativeUtf8();
  try {
    _handle = _open(p);
  } finally {
    malloc.free(p);
  }
  if (_handle == 0) {
    throw Exception(lastError());
  }
}