root property

Future<String> root

Retrieves the root directory path for local storage.

Returns a Future that completes with the root directory path.

Implementation

Future<String> get root async {
  return getApplicationDocumentsDirectory().onError((_, __) {
    return Directory("");
  }).then((value) => value.path);
}