dvAndroidFilesRoot function

String? dvAndroidFilesRoot(
  1. String? filesDir
)

The one directory files.readBytes, files.writeBytes and files.delete may touch, given the application's own files directory. Null when there is none.

A subdirectory rather than the files directory itself, and that is the whole point of the function. Confining the file bindings to the files directory would put the device id and the provisioning record inside their root, so files.delete('dartvel-device/provisioning.json') from application code tidying up after itself would unprovision the device — and nothing would report it, because the next device.health simply carries a new id.

Implementation

String? dvAndroidFilesRoot(String? filesDir) =>
    _dvAndroidUnder(filesDir, 'dartvel-files');