getAppExternalPath method
Returns the external storage path of the app.
This method retrieves the app's external storage directory, which is useful for saving files that should be accessible outside the app's internal storage.
Platform-specific behavior:
- On Android, /storage/emulated/0.
- On Linux
/home/[your pc name]
- On iOS, external storage is not available in the same way.
Implementation
@override
Future<String?> getAppExternalPath() async {
return Platform.environment['HOME'] ?? '';
}