logMetric static method

void logMetric(
  1. Client client,
  2. String publicKey,
  3. String featureName,
  4. String responseTime,
)

Implementation

static void logMetric(final http.Client client,
    final String publicKey,
    final String featureName,
    String responseTime ) async {
  final request = {
  "publicKey": publicKey,
  "language": "Flutter Rave v3",
  "version": "Flutter SDK 0.0.3",
  "title": featureName,
  "message": responseTime
  };
  try {
    client.post(Uri.parse(_METRIC_URL), body: jsonEncode(request));
  } catch (ignored) { }
}