close method
void
close()
Close the file. Closing a file when you are finished with it is important to avoid leaking resources.
const file = await Deno.open("my_file.txt");
// do work with "file" object
file.close();
Implementation
void close() {
_i3.callMethod(
this,
'close',
[],
);
}