FunctionProxy constructor

FunctionProxy(
  1. Function? target, {
  2. int? timeout,
  3. bool trailing = false,
  4. bool immediate = false,
  5. String? id,
})

Implementation

FunctionProxy(
  this.target, {
  int? timeout,
  this.trailing = false,
  this.immediate = false,
  this.id,
}) : timeout = timeout ?? 500 {
  if (this.timeout < 0) {
    throw ArgumentError.value(
        this.timeout, 'timeout', 'must not be negative');
  }
}