isAutoShieldEnabled method

  1. @override
Future<bool> isAutoShieldEnabled()
override

Whether auto-shield is ON. true when unknown/unset (the default posture: everything shielded).

Implementation

@override
Future<bool> isAutoShieldEnabled() async {
  reads++;
  final gate = readGate;
  if (gate != null) await gate.future;
  if (failReads) throw Exception('scripted settings read failure');
  return autoShieldValue ?? true;
}