getGameSummary static method

Future<GameSummary> getGameSummary()

Obtains the information about the current game from Huawei game server. If the obtaining fails, the information will then be obtained from the local cache.

Implementation

static Future<GameSummary> getGameSummary() async {
  final dynamic response = await _channel.invokeMethod(
    'GameSummaryClient.getGameSummary',
  );
  return GameSummary.fromMap(Map<dynamic, dynamic>.from(response));
}