JeaFire class

Constructors

JeaFire()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

decode(String value) List
Decode an encrypted String type data with encode.
decodeAndTagAddEndElement(String key, String value) List
Decode a String type data encrypted with encode and give the tag to the final index.
encode(List value) String
It pulls data from Firebase Realtime Database.
Data must be pulled with a password provided by JeaFire.
If you try to pull a different data, an error may occur. Encrypts the list with a key and converts it to String format.
You can store it as a String. !feValueIndex! The list has been converted to a String format. Use this to decode: decode.
get(String reference, bool fevalue) Future
Retrieves the reference from the Firebase Realtime Database.
If 'fevalue' is true, it decodes the incoming data and returns
the data in list type. If not, it returns the data directly.
getOnce(String reference) Future<List>
getProfile() Future<List>
It finds the user in the 'users' reference from the
Firebase Realtime Database and returns its information
as a list. In order for this function to work successfully,
the user must be registered with register.
getUID() Future<String>
If the user is logged in, you can request the UID using this function.
isSignedIn() bool
Queries whether Firebase Auth is logged in.
login(String email, String password) Future<List>
Sign in with Firebase Auth. When the login is successful,
the first item of the returned list is 1. If it fails, it returns 0.
In case of success, the second item will be user.user. On failure,
the second item of the list returns an error message.
logout() → dynamic
Logs out of Firebase Auth.
register(String email, String password, List userDatas) Future<List>
You can use this function for a quick recording.
It registers using "FirebaseAuth.instance.createUserWithEmailAndPassword()"
and sends the userDatas list to the users reference of the Realtime Database
using the "user.user!.uid" tag.
storeValue(String reference, String tag, List valueList) Future<String>