User.from constructor

User.from({
  1. required String id,
  2. required String name,
  3. required String fullname,
  4. required String avatarUrl,
  5. required bool isAdmin,
})

Returns the new instance of User based on arguments.

Implementation

User.from({
  required this.id,
  required this.name,
  required this.fullname,
  required this.avatarUrl,
  required this.isAdmin,
});