Api library
Constants
- loginWithApiToken → const String
-
Login Existing User with Token
"https://www.googleapis.com/identitytoolkit/v3/relyingparty/getAccountInfo?key=${AppConstants.API_KEY}"
- passwordResetApi → const String
-
Send reset password email to user
"https://identitytoolkit.googleapis.com/v1/accounts:sendOobCode?key=${AppConstants.API_KEY}"
- registerUserApi → const String
-
Register User
"https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=${AppConstants.API_KEY}"
- signInApi → const String
-
Login Existing User with Email and Password
"https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=${AppConstants.API_KEY}"
Properties
Functions
-
addNote(
NoteModel noteModel ) → Future< bool> -
return add new note
noteModel
-
deleteNote(
NoteModel noteModel ) → Future< bool> -
delete existing note
noteModel
-
getNotes(
) → Future< List< NoteModel> > - return List of notes of user
-
registerUser(
String email, String password ) → Future< String> -
Sign-up new user with
email
andpassword
-
resetPassword(
String email ) → Future< bool> -
Reset password with
email
-
sendVerifyEmail(
String email ) → Future< bool> -
send Email verification
email
-
signInUser(
String email, String password ) → Future< String> -
Sign-in existing user with
email
andpassword
-
signInWithToken(
String token ) → Future< bool> -
Sign-in existing user with
token
-
updateData(
NoteModel noteModel ) → Future< bool> -
update existing note
noteModel