normalizeAssetDir static method

Future<String?> normalizeAssetDir(
  1. String assetDir
)

On Android, this will copy the asset dir from the AssetManager into context.filesDir, and return the filesystem path to the newly created dir. Pathnames will be URL-decoded. On iOS, this will return the filesystem path to the asset dir.

Implementation

static Future<String?> normalizeAssetDir(String assetDir) async {
  final args = <String, dynamic>{
    'assetDir': assetDir,
  };
  final result = await _channel.invokeMethod('normalizeAssetDir', args);
  final String? path = result;

  return path;
}