getAccount method
Get the user account
Many of Nakama’s features are accessible with an authenticated session, like fetching a user account.
Implementation
@override
Future<model.Account> getAccount(model.Session session) async {
final res = await _client.getAccount(
api.Empty(),
options: _getSessionCallOptions(session),
);
return model.Account.fromDto(res);
}