i have manage offline firebase data using 

```
 Firestore.instance.settings(persistenceEnabled: true);

```

i got this solution from [What is the best way to store data from Firebase to SQLite or offline in flutter?](https://stackoverflow.com/questions/61315478/what-is-the-best-way-to-store-data-from-firebase-to-sqlite-or-offline-in-flutter)

but now its working fine but in firebase operation its not goes to next step.
my code is :

```
 showLoader();
   print("2222222222222222");

    DocumentReference ref = await _databaseReference
        .collection(FirebaseCollection.transcation)
        .add(param).catchError((onError){
          hideLoader();
          print("5555555  $onError");
    }).then((onValue){
      print("44444444444 $onValue");
    });

    print("33333333333");

    var token = '';
    var receiverId = '';
    .collection(FirebaseCollection.user)
      .document(userId)
      .get()
      .then((document) async {
    UserModel userModel = UserModel.fromsnapshot(document);
     print("data");
   }

```

here i have debug but print only 2222222222 nothing else.
i dont able to hide my loader or another task perform when my device is offline.