cancelTrace static method

Future<String?> cancelTrace(
  1. String traceKey
)

Implementation

static Future<String?> cancelTrace(String traceKey) async {
  if (!_instance._countlyState.isInitialized) {
    String message = '"initWithConfig" must be called before "cancelTrace"';
    log('cancelTrace, $message', logLevel: LogLevel.ERROR);
    return message;
  }
  log('Calling "cancelTrace":[$traceKey]');
  List<String> args = [];
  args.add(traceKey);

  final String? result = await _channel.invokeMethod('cancelTrace', <String, dynamic>{'data': json.encode(args)});

  return result;
}