FakeFirebaseSecurityRules constructor

FakeFirebaseSecurityRules(
  1. String securityRules, {
  2. Logger? logger,
})

Implementation

FakeFirebaseSecurityRules(String securityRules, {Logger? logger})
    : logger = logger ?? Logger() {
  service = Parser(logger: this.logger)
      .parse(securityRules)
      .firstWhere((service) => service.name == 'cloud.firestore');
}