UsersService class

Service for table 'users' model UserModel

Constructors

UsersService(MyDatabase _db)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteItem({required int id}) Future<int>
Delete user by ID
findByEmail({required String email}) Future<UserModel?>
Get user by email
findByEmailAndPass({required String email, required String password}) Future<UserModel?>
Get user by email, password
findById({required int id}) Future<UserModel?>
Get user by ID
getAll() Future<List<UserModel>>
Get all users
insert(List<UserModel> models) Future<List<UserModel>>
Insert list users
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(List<UserModel> models) Future<List<UserModel>>
Update list users

Operators

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