FakeFirebaseFirestore constructor

FakeFirebaseFirestore(
  1. {Stream<Map<String, dynamic>?>? authObject,
  2. String? securityRules}
)

Implementation

FakeFirebaseFirestore(
    {Stream<Map<String, dynamic>?>? authObject, String? securityRules})
    : securityRules =
          FakeFirebaseSecurityRules(securityRules ?? allowAllDescription) {
  // Wrap the Stream in a BehaviorSubject to access its latest value on
  // demand.
  authObject?.listen(this.authObject.add);
  _setupFieldValueFactory();
}