refresh method

  1. @override
Future<void> refresh()
override

Refreshes the MyUser to be up to date.

Implementation

@override
Future<void> refresh() async {
  Log.debug('refresh()', '$runtimeType');

  final response = await _graphQlProvider.getMyUser();

  if (response.myUser != null) {
    _setMyUser(response.myUser!.toDto(), ignoreVersion: true);
  }
}