getAssetAbsolutePath

Gets the actual absolute path of the asset through the relative path of the asset.

Future<String?> getAssetAbsolutePath(String assetPath)

Parameters

assetPath
The resource path configured in the flutter -> assets field of pubspec.yaml, for example: assets/Sound_Horizon.mp3.

Returns

The actual path of the asset.