post method

void post(
  1. Map<String, Object?> payload, {
  2. String tag = '',
})

Implementation

void post(Map<String, Object?> payload, {String tag = ''}) {
  final params = Map<String, Object?>.from(globalParams);
  params.addAll(payload);
  _streamController.sink.add(
    Log(
      payload: params,
      tag: tag,
      loggedAt: DateTime.now(),
    ),
  );
}