activateLevel method

Future<void> activateLevel(
  1. Level level
)

switch the focus to the specified level

Implementation

Future<void> activateLevel(Level level) async {
  if (kDebugMode) {
    print("wemapMap : level desired = ${level.toMap()}");
  }
  await _channel.invokeMethod('activateLevel', {
    "level": defaultTargetPlatform == TargetPlatform.android
        ? jsonEncode((level.toMap()))
        : level.toMap()
  });
}