fromAsset static method

Future<ArcGISImage> fromAsset(
  1. 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);
}