makeSnapshot static method

Future<ImageRefPoolSnapshot> makeSnapshot()

Implementation

static Future<ImageRefPoolSnapshot> makeSnapshot() async {
  try {
    var result = await MethodChannels.mainApis.invokeMethod('makeSnapshot');
    return ImageRefPoolSnapshot.fromJson(jsonDecode(result));
  } catch (e) {
    Logger.root.severe(e);
    rethrow;
  }
}