ParseUser constructor

ParseUser(
  1. String? username,
  2. String? password,
  3. String? emailAddress, {
  4. String? sessionToken,
  5. bool? debug,
  6. ParseClient? client,
})

Creates an instance of ParseUser

Users can set whether debug should be set on this class with a bool, they can also create their own custom version of ParseHttpClient

Creates a new user locally

Requires String username, String password. String email address is required as well to create a full new user object on ParseServer. Only username and password is required to login

Implementation

ParseUser(
  String? username,
  String? password,
  String? emailAddress, {
  String? sessionToken,
  bool? debug,
  ParseClient? client,
}) : super(
        keyClassUser,
        client: client,
        autoSendSessionId: true,
        debug: debug,
      ) {
  if (username != null) this.username = username;
  if (emailAddress != null) this.emailAddress = emailAddress;
  if (password != null) this.password = password;
  if (sessionToken != null) this.sessionToken = sessionToken;
}