User class Null safety

A user in the application.

Annotations

Constructors

User({required UserId id, required String name, required String username, required String email, Address? address, String? phone, String? websiteUrl, Company? company})
Creates a user.
const
factory

Properties

address Address?
read-only, inherited
company Company?
read-only, inherited
copyWith → $UserCopyWith<User>
@JsonKey(ignore: true), read-only, inherited
email String
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id UserId
read-only, inherited
name String
read-only, inherited
phone String?
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
username String
read-only, inherited
websiteUrl String?
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited