getApplicationContext method

Future<ApplicationContext> getApplicationContext()

Return the current ApplicationContext context of session ApplicationContext is a map data which is synced across of IOS app and WatchOS app

Implementation

Future<ApplicationContext> getApplicationContext() async {
  Map rawContext = await channel.invokeMethod("getLatestApplicationContext");
  return ApplicationContext.fromJson(rawContext.toMapStringDynamic());
}