fromAsset static method
- String assetKey
Retrieves an ArcGISImage from the rootBundle under the key assetKey
.
Implementation
static Future<ArcGISImage> fromAsset(String assetKey) async {
final byteData = await rootBundle.load(assetKey);
return fromByteData(byteData);
}