dart:html
库中Event.eventType
的用法介绍如下。
用法:
Event.eventType(
String type,
String name,
{bool canBubble = true,
bool cancelable = true}
)
创建指定类型的新事件对象。
这类似于 document.createEvent。通常事件应该通过它们的构造函数创建,如果可用的话。
var e = new Event.type('MouseEvent', 'mousedown', true, true);
相关用法
- Dart EventStreamProvider.forTarget用法及代码示例
- Dart Events用法及代码示例
- Dart EventStreamProvider.forElement用法及代码示例
- Dart Element.children用法及代码示例
- Dart Element.tag用法及代码示例
- Dart Element.querySelectorAll用法及代码示例
- Dart Enum.compareByIndex用法及代码示例
- Dart Element.animate用法及代码示例
- Dart Element.created用法及代码示例
- Dart ElementList.classes用法及代码示例
- Dart Element.querySelector用法及代码示例
- Dart EnumName.name用法及代码示例
- Dart Enum.compareByName用法及代码示例
- Dart Element.insertAdjacentHtml用法及代码示例
- Dart Element.dataset用法及代码示例
- Dart Element.html用法及代码示例
- Dart Element.classes用法及代码示例
- Dart Error用法及代码示例
- Dart MapMixin.containsKey用法及代码示例
- Dart Iterator用法及代码示例
- Dart AttributeClassSet.intersection用法及代码示例
- Dart num.sign用法及代码示例
- Dart TransformList.last用法及代码示例
- Dart FileList.first用法及代码示例
- Dart CanvasRenderingContext2D.drawImageScaledFromSource用法及代码示例
注:本文由纯净天空筛选整理自dart.dev大神的英文原创作品 Event.eventType constructor。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。