getPhoneLocalPath static method

Future<String?> getPhoneLocalPath()

获取手机本地路径

Implementation

static Future<String?> getPhoneLocalPath() async {
  final directory = Platform.isAndroid ? await getExternalStorageDirectory() : await getApplicationDocumentsDirectory();
  return directory?.path;
}