From dad938b0e1be0aae64d50c92f78742ddc2b28cce Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sun, 11 Sep 2022 13:43:07 +0200 Subject: [PATCH] feat: Allow initializing the BTBV trust manager in the constructor --- lib/src/trust/btbv.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/trust/btbv.dart b/lib/src/trust/btbv.dart index 2316d60..aa7ac03 100644 --- a/lib/src/trust/btbv.dart +++ b/lib/src/trust/btbv.dart @@ -33,11 +33,11 @@ BTBVTrustState _trustFromInt(int i) { /// A TrustManager that implements the idea of Blind Trust Before Verification. /// See https://gultsch.de/trust.html for more details. abstract class BlindTrustBeforeVerificationTrustManager extends TrustManager { - BlindTrustBeforeVerificationTrustManager() - : trustCache = {}, - enablementCache = {}, - devices = {}, - _lock = Lock(); + BlindTrustBeforeVerificationTrustManager({ + this.trustCache = const {}, + this.enablementCache = const {}, + this.devices = const {}, + }) : _lock = Lock(); /// The cache for mapping a RatchetMapKey to its trust state @visibleForTesting