fromName static method

SSHSignal fromName(
  1. String name
)

Implementation

static SSHSignal fromName(String name) {
  switch (name) {
    case 'ABRT':
      return SSHSignal.ABRT;
    case 'ALRM':
      return SSHSignal.ALRM;
    case 'FPE':
      return SSHSignal.FPE;
    case 'HUP':
      return SSHSignal.HUP;
    case 'ILL':
      return SSHSignal.ILL;
    case 'INT':
      return SSHSignal.INT;
    case 'KILL':
      return SSHSignal.KILL;
    case 'PIPE':
      return SSHSignal.PIPE;
    case 'QUIT':
      return SSHSignal.QUIT;
    case 'SEGV':
      return SSHSignal.SEGV;
    case 'TERM':
      return SSHSignal.TERM;
    case 'USR1':
      return SSHSignal.USR1;
    case 'USR2':
      return SSHSignal.USR2;
  }
  throw ArgumentError('Unknown signal name: $name');
}