initialize method

void initialize({
  1. SendPort? sendPort,
  2. double far = 0.05,
})

Implementation

void initialize({SendPort? sendPort, double far = 0.05}) {
  Futronico.sendPort = sendPort;
  if (_isInitialized) return;
  int initializeResult = _initialize();
  if (initializeResult != 0) {
    if (initializeResult == 4) return;
    throw FutronicError(FutronicUtils.getErrorMessage(initializeResult));
  }
  _isInitialized = true;
  configureFutronic(far: far);
}