findUserById method
Finds a user by ID
id The user ID
table The table name
primaryKey The primary key field name
Returns the user record if found, null otherwise
Implementation
@override
Future<Map<String, dynamic>?> findUserById(
dynamic id,
String table,
String primaryKey,
) async {
final result =
await Khadem.db.table(table).where(primaryKey, '=', id).first();
return result as Map<String, dynamic>?;
}