User class

Constructors

User({required int id, required String fullName, required String userName, String? bio, String? avatar})
User.fromJson(String source)
factory
User.fromMap(Map<String, dynamic> map)
factory

Properties

avatar String?
final
bio String?
final
fullName String
final
hashCode int
The hash code for this object.
no setteroverride
id int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userName String
getter/setter pair

Methods

copyWith({int? id, String? fullName, String? userName, String? avatar, String? bio}) User
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(covariant User other) bool
The equality operator.
override