getProfile method

Future<User?> getProfile()

Implementation

Future<User?> getProfile() async {
  if (twitter == null) await _startSession();
  if (_profile != null) return _profile;

  _profile = await getUser(twitter!.username);
  return _profile;
}