setProtection method
Future<void>
setProtection(
- bool enabled, {
- bool protectInAppSwitcher = true,
- Color appSwitcherColor = Colors.black,
})
Implementation
Future<void> setProtection(
bool enabled, {
bool protectInAppSwitcher = true,
Color appSwitcherColor = Colors.black,
}) async {
_enabled = enabled;
_protectInAppSwitcher = protectInAppSwitcher;
_appSwitcherColor = appSwitcherColor;
await _service.updateSource(
key: _sourceKey,
enabled: _enabled,
protectInAppSwitcher: _protectInAppSwitcher,
appSwitcherColor: _appSwitcherColor,
);
}