FirebaseDocProvider<T> constructor

FirebaseDocProvider<T>({
  1. required T parse(
    1. RawMap data
    ),
  2. bool cancleOnError(
    1. Object error
    )?,
  3. FirebaseFirestore? firestoreInstance,
})

Implementation

FirebaseDocProvider({
  required this.parse,
  this.cancleOnError,
  FirebaseFirestore? firestoreInstance,
}) : _firestoreInstance = firestoreInstance ?? FirebaseFirestore.instance {
  notifyListeners();
}