import 'package:comunic/enums/user_page_visibility.dart'; import 'package:meta/meta.dart'; /// Single user information /// /// @author Pierre HUBERT class User { final int id; final String firstName; final String lastName; final UserPageVisibility pageVisibility; final String virtualDirectory; final String accountImageURL; const User({ @required this.id, @required this.firstName, @required this.lastName, @required this.pageVisibility, @required this.virtualDirectory, @required this.accountImageURL, }) : assert(id != null), assert(firstName != null), assert(lastName != null), assert(pageVisibility != null), assert(accountImageURL != null); /// Get user full name String get fullName => firstName + " " + lastName; }