fromValue static method

PRINT_EXECUTION_CONTEXT fromValue(
  1. int value
)

Implementation

static PRINT_EXECUTION_CONTEXT fromValue(int value) => switch (value) {
      0 => PRINT_EXECUTION_CONTEXT_APPLICATION,
      1 => PRINT_EXECUTION_CONTEXT_SPOOLER_SERVICE,
      2 => PRINT_EXECUTION_CONTEXT_SPOOLER_ISOLATION_HOST,
      3 => PRINT_EXECUTION_CONTEXT_FILTER_PIPELINE,
      4 => PRINT_EXECUTION_CONTEXT_WOW64,
      _ => throw ArgumentError(
          'Unknown value for PRINT_EXECUTION_CONTEXT: $value'),
    };