setSandboxMode static method

Future<void> setSandboxMode(
  1. SandboxMode mode
)

Implementation

static Future<void> setSandboxMode(SandboxMode mode) async {
  switch (mode) {
    case SandboxMode.autoAllow:
      _enabled = true;
      _autoAllowBash = true;
      break;
    case SandboxMode.regular:
      _enabled = true;
      _autoAllowBash = false;
      break;
    case SandboxMode.disabled:
      _enabled = false;
      _autoAllowBash = false;
      break;
  }
}