User class

A shadertoy site user

Annotations
  • @JsonSerializable()

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
final
followers int
How many users follow this user
final
following int
How many users this user follows
final
hashCode int
The hash code for this object.
no setterinherited
id String
The id of the user
final
memberSince DateTime
Join date of the user
final
picture String?
A link to the user picture
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

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 nonexistent 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