getPlayerName static method

Future<String?> getPlayerName()

Get the current player's name. On iOS/macOS the player's alias is provided.

Implementation

static Future<String?> getPlayerName() async {
  return await Player.getPlayerName();
}