Calculator.withEngine constructor

Calculator.withEngine(
  1. BcEngine engine, {
  2. BcIntegrationMethod method = BcIntegrationMethod.rk4,
  3. BcConfig? config,
})

Wraps an already-open BcEngine instead of opening the native library.

Implementation

Calculator.withEngine(
  BcEngine engine, {
  this.method = BcIntegrationMethod.rk4,
  BcConfig? config,
}) : config = config ?? defaultConfig,
     _engine = engine;