fromValue static method

BcIntegrationMethod fromValue(
  1. int value
)

Implementation

static BcIntegrationMethod fromValue(int value) => switch (value) {
  0 => rk4,
  1 => euler,
  2 => velocityVerlet,
  3 => rkck,
  4 => dopri,
  5 => tsitouras,
  _ => throw ArgumentError('Unknown value for BcIntegrationMethod: $value'),
};