getAssetAbsolutePath method

Future<String?> getAssetAbsolutePath(
  1. String assetPath
)

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

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

return The actual path of the asset.

Implementation

Future<String?> getAssetAbsolutePath(String assetPath) {
  return RtcEngineImpl.methodChannel
      .invokeMethod('getAssetAbsolutePath', assetPath);
}