BloomEvent constructor

BloomEvent({
  1. required String type,
  2. String? value,
  3. bool? checked,
  4. Object? rawTarget,
  5. String? key,
  6. String? code,
  7. bool shiftKey = false,
  8. bool ctrlKey = false,
  9. bool altKey = false,
  10. bool metaKey = false,
  11. double? clientX,
  12. double? clientY,
  13. double? offsetX,
  14. double? offsetY,
  15. int? button,
  16. List<String>? files,
  17. String? dataTransfer,
  18. void preventDefaultFn()?,
  19. void stopPropagationFn()?,
})

Creates a new BloomEvent descriptor with the given properties and lifecycle callbacks.

Implementation

BloomEvent({
  required this.type,
  this.value,
  this.checked,
  this.rawTarget,
  this.key,
  this.code,
  this.shiftKey = false,
  this.ctrlKey = false,
  this.altKey = false,
  this.metaKey = false,
  this.clientX,
  this.clientY,
  this.offsetX,
  this.offsetY,
  this.button,
  this.files,
  this.dataTransfer,
  void Function()? preventDefaultFn,
  void Function()? stopPropagationFn,
})  : _preventDefaultFn = preventDefaultFn,
      _stopPropagationFn = stopPropagationFn;