I am building an application that is supposed to create a movie library for you. I have set up my firebase database to store the movie title and all the movie specifications inside the database like so: 
The next step I want to take is reading only the movie titles (Official Secrets, Seberg, Unbreakable Kimmy Schmidt) to make a list displaying the movie titles to the user. I tried using
void readData()
{
DBRef.once().then((DataSnapshot datasnapshot){
print('DATA SNAPSHOT NEXT LINE');
print(datasnapshot.value);
});
}
But grabs all the data inside my firebase database when I only want the titles. How do I grab only the titles? Then following that, if a user selects a title I then want to go into the database and grab all the information that falls under that title. For example:
- User has those 3 movies in their library
- User Selects Seberg
- Now my app goes into the database and grabs all the information contained under Seberg.
I have also tried:
void readData()
{
DBRef.child('Official Secrets (2019)').once().then((DataSnapshot datasnapshot)
{
print('DATA SNAPSHOT NEXT LINE');
print(datasnapshot.value);
});
}
I used this to try to test to grab only the title of the movie, but this returns null.