initialize method

Future<Result<void>> initialize({
  1. required String apiKey,
  2. required String endpoint,
  3. required String featureTag,
  4. bool debugging = false,
  5. int logSendingIntervalMillis = 60000,
  6. int logSendingMaxBatchQueueCount = 50,
  7. int pollingEvaluationIntervalMillis = 600000,
})

Implementation

Future<Result<void>> initialize({
  required String apiKey,
  required String endpoint,
  required String featureTag,
  bool debugging = false,
  int logSendingIntervalMillis = 60000,
  int logSendingMaxBatchQueueCount = 50,
  int pollingEvaluationIntervalMillis = 600000,
}) async {
  return _resultGuard(
    await _invokeMethod('initialize', argument: {
      'apiKey': apiKey,
      'endpoint': endpoint,
      'featureTag': featureTag,
      'debugging': debugging,
      'logSendingIntervalMillis': logSendingIntervalMillis,
      'logSendingMaxBatchQueueCount': logSendingMaxBatchQueueCount,
      'pollingEvaluationIntervalMillis': pollingEvaluationIntervalMillis,
    }),
  );
}