get static method
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.
Implementation
static Future<dynamic> get(String reference, bool fevalue) async {
DatabaseReference ref = FirebaseDatabase.instance.ref(reference);
DataSnapshot snapshot = await ref.get();
if (fevalue == true) {
return JeaFire.decode(snapshot.value.toString());
} else {
return snapshot;
}
}