maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult serverError(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  2. TResult emulatorError(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  3. TResult insufficientPermission(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  4. TResult missingHardwarerDoc(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  5. TResult invalidHardwarerDoc(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  6. TResult noHardware(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  7. TResult noHardwareLocation(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  8. TResult alreadyRegistered(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  9. TResult sameLocationSet(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  10. TResult hardwareNotRegistered(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  11. TResult searchNotFound(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  12. TResult nothingToSearch(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  13. TResult noConnect(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  14. TResult noCombs(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  15. TResult noTemperature(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  16. TResult noWeight(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  17. TResult noHeartbeat(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  18. TResult noTreatments(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  19. TResult notConnected(
    1. String code,
    2. String? error,
    3. String? id
    )?,
  20. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(String code, String? error, String? id)? serverError,
  TResult Function(String code, String? error, String? id)? emulatorError,
  TResult Function(String code, String? error, String? id)?
      insufficientPermission,
  TResult Function(String code, String? error, String? id)?
      missingHardwarerDoc,
  TResult Function(String code, String? error, String? id)?
      invalidHardwarerDoc,
  TResult Function(String code, String? error, String? id)? noHardware,
  TResult Function(String code, String? error, String? id)?
      noHardwareLocation,
  TResult Function(String code, String? error, String? id)? alreadyRegistered,
  TResult Function(String code, String? error, String? id)? sameLocationSet,
  TResult Function(String code, String? error, String? id)?
      hardwareNotRegistered,
  TResult Function(String code, String? error, String? id)? searchNotFound,
  TResult Function(String code, String? error, String? id)? nothingToSearch,
  TResult Function(String code, String? error, String? id)? noConnect,
  TResult Function(String code, String? error, String? id)? noCombs,
  TResult Function(String code, String? error, String? id)? noTemperature,
  TResult Function(String code, String? error, String? id)? noWeight,
  TResult Function(String code, String? error, String? id)? noHeartbeat,
  TResult Function(String code, String? error, String? id)? noTreatments,
  TResult Function(String code, String? error, String? id)? notConnected,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;