getStorageRootDirectory method
Get the root of the primary external/shared storage.
On Android this returns /storage/emulated/0 (the external storage root).
Works across all manufacturers including Xiaomi (MIUI), Samsung (One UI),
Huawei (EMUI), and others. Returns null on platforms without this concept.
Implementation
@override
Future<String?> getStorageRootDirectory() async {
return await methodChannel.invokeMethod<String>('getStorageRootDirectory');
}