lock method

void lock()

content under SecureGate will not be visible

Implementation

void lock() {
  SecureApplicationNative.lock();
  if (!value.locked) {
    value = value.copyWith(locked: true);
    notifyListeners();
    _lockEventsController.add(true);
  }
}