getAssetAbsolutePath
通过 Asset 的相对规路径获取该 Asset 的实际绝对路径。
Future<String?> getAssetAbsolutePath(String assetPath)
参数
- asset
- pubspec.yaml 文件中配置的 flutter -> assets 字段。
返回值
Asset 的实际路径。
通过 Asset 的相对规路径获取该 Asset 的实际绝对路径。
Future<String?> getAssetAbsolutePath(String assetPath)
Asset 的实际路径。