getCurrentPlayer static method

Future<Player> getCurrentPlayer()

Obtains the Player object of the current player. Only getOpenId, getUnionId, getAccessToken, and getOpenIdSign in the Player object returned by the AppTouch business have values.

Implementation

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