PollingWildcardChangeToken constructor

PollingWildcardChangeToken(
  1. String _root,
  2. String _pattern, {
  3. Duration pollingInterval = const Duration(seconds: 4),
  4. CancellationTokenSource? cancellationTokenSource,
})

Creates a new PollingWildcardChangeToken for the specified pattern.

Implementation

PollingWildcardChangeToken(
  this._root,
  this._pattern, {
  Duration pollingInterval = const Duration(seconds: 4),
  CancellationTokenSource? cancellationTokenSource,
})  : _pollingInterval = pollingInterval,
      _cancellationTokenSource = cancellationTokenSource {
  _initializeState();
}