User class Null safety

A shadertoy site user

Inheritance
Annotations

Constructors

User({required String id, String? picture, required DateTime memberSince, int following = 0, int followers = 0, String? about})
Builds a user [...]
const
User.fromJson(Map<String, dynamic> json)
Creates a User from json map
factory

Properties

about String?
More about the user
@JsonKey(name: 'about'), final
followers int
How many users follow this user
@JsonKey(name: 'followers'), final
following int
How many users this user follows
@JsonKey(name: 'following'), final
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
The id of the user
@JsonKey(name: 'id'), final
memberSince DateTime
Join date of the user
@JsonKey(name: 'memberSince'), final
picture String?
A link to the user picture
@JsonKey(name: 'picture'), final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props. [...]
read-only, inherited

Methods

copyWith({String? id, String? picture, DateTime? memberSince, int? following, int? followers, String? about}) User
Builds a copy of a User [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Creates a json map from a User
toString() String
A string representation of this object. [...]
inherited

Operators

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