fromValue static method

BcTerminationReason fromValue(
  1. int value
)

Implementation

static BcTerminationReason fromValue(int value) => switch (value) {
  0 => noTerminate,
  1 => targetRangeReached,
  2 => minimumVelocityReached,
  3 => maximumDropReached,
  4 => minimumAltitudeReached,
  5 => handlerRequestedStop,
  _ => throw ArgumentError('Unknown value for BcTerminationReason: $value'),
};