Event.internal constructor

  1. @visibleForTesting
Event.internal(
  1. String type, {
  2. EventTarget? target,
  3. bool? composed = false,
  4. bool canBubble = true,
  5. bool? cancelable = true,
})

Implementation

@visibleForTesting
Event.internal(
  this.type, {
  EventTarget? target,
  this.composed = false,
  bool canBubble = true,
  this.cancelable = true,
})  : bubbles = canBubble,
      _target = target,
      timeStamp = DateTime.now().microsecondsSinceEpoch;