getUser method
Gets the user data for the user corresponding to a given uid
.
Implementation
Future<UserRecord> getUser(String uid) async {
var response = await _authRequestHandler.getAccountInfoByUid(uid);
// Returns the user record populated with server response.
return UserRecord.fromJson(response['users'][0]);
}