BufferedDataHandler constructor

BufferedDataHandler(
  1. void _addDataFunction(
    1. String
    ), {
  2. Duration interval = const Duration(seconds: 1),
})

Creates a BufferedDataHandler that handles the data buffering and delayed processing.

_addDataFunction Function to handle data adding. interval Time interval in milliseconds for transmitting buffered data.

Implementation

BufferedDataHandler(
  this._addDataFunction, {
  this.interval = const Duration(seconds: 1),
});