resolveApplicationDirectory method

  1. @override
Future<Directory> resolveApplicationDirectory()
override

Returns a Future that resolves to a Directory object representing the directory where the application should store its files.

Implementation

@override
Future<Directory> resolveApplicationDirectory() async {
  var dir = await getApplicationDocumentsDirectory();

  return Directory("${dir.path}/${config.kAppName}").create(recursive: true);
}