getAccount method

  1. @override
Future<Account> getAccount(
  1. Session session
)
override

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 {
  _session = session;
  final res = await _api.v2AccountGet();

  return Account.fromJson(res.body!.toJson());
}