fromValue static method

BCLIBCFFI_IntegrationMethod fromValue(
  1. int value
)

Implementation

static BCLIBCFFI_IntegrationMethod fromValue(int value) => switch (value) {
  0 => BCLIBCFFI_INTEGRATION_RK4,
  1 => BCLIBCFFI_INTEGRATION_EULER,
  _ => throw ArgumentError(
    'Unknown value for BCLIBCFFI_IntegrationMethod: $value',
  ),
};