ObfuscationConfig.fromSecretString constructor

ObfuscationConfig.fromSecretString({
  1. required bool enabled,
  2. required String? secret,
})

Implementation

factory ObfuscationConfig.fromSecretString({
  required bool enabled,
  required String? secret,
}) =>
    ObfuscationConfig._(
      enabled: enabled,
      secret: secret != null
          ? (secret.hashCode % _maxInt)
          : Random.secure().nextInt(_maxInt),
    );