assetManager

openFd

key

);

Loading Flutter assets in iOS

mainBundle.
The lookup key used in, for instance

pathForResource:ofType:,
is obtained from

FlutterPluginRegistrar, or

FlutterViewController.

As an example, suppose you have the Flutter setting from above.

To access icons/heart.png from your Objective-C plugin code you
would do the following:

To access icons/heart.png from your Swift app you
would do the following:

let

key

controller

lookupKey

forAsset

"icons/heart.png"

let

mainBundle

Bundle

main

let

path

mainBundle