native library

The parts of this package that need a filesystem.

import 'package:flutter3d_app/native.dart';

A second entry point rather than more exports on the main barrel, for the reason flutter3d_hardware/testing.dart is one: flutter3d_app.dart is imported by games that build for the web, and a dart:io import anywhere behind it makes the whole package refuse to compile there. What is here needs File and says so by being somewhere a web build never looks.

One thing so far — writing a document without the moment where it is half a document, which the editor needed and had written the unsafe version of.

Functions

writeBytesAtomicallySync(String path, Uint8List contents) → void
The same as writeFileAtomicallySync, for bytes rather than text — FileBinaryStorage's write.
writeFileAtomically(String path, String contents) Future<void>
Writes contents to path, through a temporary file and a rename.
writeFileAtomicallySync(String path, String contents) → void
The same, without waiting. For a caller already on a synchronous path.