flush method

Future<void> flush()

Forces sending of all pending logs

Implementation

Future<void> flush() async {
  if (_batch.isNotEmpty) {
    await _sendBatch();
  }
}