I am developing a Flutter application where I need to get 10 records at a time from Firebase Realtime Database. Then on pressing a button, get the next 10 records. Currently, the code I am using is returning all the records
final snapshot = (await ref.child('user').get());
Is there a way to get the first 10 records and after button press get the next 10 records?