fromImage static method
- Image image
Converts a ui.Image to an ArcGISImage.
Implementation
static Future<ArcGISImage> fromImage(ui.Image image) async {
final byteData = await image.toByteData(format: ui.ImageByteFormat.png);
return fromByteData(byteData!);
}