Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- date:11-07-2024:
- #to get a user by user_id:
- import 'package:dhabiansomachar/SM/ModelClass/LoginCredential.dart';
- if(widget.user.id == LoginCredentials().loggedInUser?.id)
- {
- user = LoginCredentials().loggedInUser!;
- }
- else
- {
- user = SpecificWant().specificUserFromJson(widget.user.id);
- }
- ----------------------------------------------------------
- past:
- /*
- FetchCredential fc = FetchCredential();
- Object uk = await fc.findCredential();
- User us = uk as User;
- print(us.country);
- */
- /*
- Credential sc = Credential();
- //sc.saveCredential(us);
- User us = await sc.getCredential();
- print(us.userName);
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement