final ref = FirebaseDatabase.instance.reference();
void getData() {
ref
.child('videos')
.child('class_10')
.child('chapter_1')
.once()
.then((DataSnapshot data) {
print(data.value);
print(data.key);
});
}
void createRecord() {
ref
.child('videos')
.child('class_10')
.child('chapter_1')
.set([
{"length": "1:3333", "title": "Introduction 1.1"},
{"length": "2:30", "title": "Introduction 1.2"}
]);
}