externalFilesDir property

Future<Directory> externalFilesDir

Returns the absolute path to the directory on the primary shared/external storage device where the application can place persistent files it owns. These files are internal to the applications, and not typically visible to the user as media.

See: https://developer.android.com/reference/android/content/Context#getExternalFilesDir(java.lang.String)


static Future<Directory> get externalFilesDir async {
  return Directory(
      await _channel.invokeMethod('getExternalFilesDir') as String);