Calculator.withEngine constructor
Calculator.withEngine(
- BcEngine engine, {
- BcIntegrationMethod method = BcIntegrationMethod.rk4,
- 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;