hardware_error_hardwareError method

String hardware_error_hardwareError(
  1. Object failure
)

{failure, select, ERROR_EEPROM{EEPROM} ERROR_SHORT{SHORT} ERROR_NO_SOFTWARE{SOFTWARE} ERROR_LOAD{LOAD} ERROR_CONTACT{CONTACT} other{Hardware error.}}

Implementation

String hardware_error_hardwareError(Object failure) {
  return Intl.select(
    failure,
    {
      'ERROR_EEPROM': 'EEPROM',
      'ERROR_SHORT': 'SHORT',
      'ERROR_NO_SOFTWARE': 'SOFTWARE',
      'ERROR_LOAD': 'LOAD',
      'ERROR_CONTACT': 'CONTACT',
      'other': 'Hardware error.',
    },
    name: 'hardware_error_hardwareError',
    desc: '',
    args: [failure],
  );
}