IntegrityCheckConfig constructor

const IntegrityCheckConfig({
  1. bool blockIfRootedOrJailbroken = true,
  2. bool blockIfDeveloperMode = false,
  3. bool blockIfEmulatorOrSimulator = true,
  4. bool usePlayIntegrity = false,
  5. String? cloudProjectNumber,
  6. String? nonce,
  7. String? requestHash,
})

Creates a new instance of IntegrityCheckConfig.

By default, it checks for Root/Jailbreak and Emulators, but ignores Developer Mode.

Implementation

const IntegrityCheckConfig({
  this.blockIfRootedOrJailbroken = true,
  this.blockIfDeveloperMode = false,
  this.blockIfEmulatorOrSimulator = true,
  this.usePlayIntegrity = false,
  this.cloudProjectNumber,
  this.nonce,
  this.requestHash,
}) : assert(
        !usePlayIntegrity || cloudProjectNumber != null,
        'cloudProjectNumber cannot be null when usePlayIntegrity is true.',
      );