isReadOnly static method

bool isReadOnly(
  1. String path
)

Check if a path is read-only (outside data directory).

path - Relative path to check. Returns true if the path cannot be modified by the user.

Implementation

static bool isReadOnly(String path) {
  return !isDataPath(path);
}