DOMMouseEvent<T>.synthetic constructor
DOMMouseEvent<T>.synthetic ({})
Creates an artificial event. Useful to generated events programmatically.
Implementation
factory DOMMouseEvent.synthetic({
DOMTreeMap<T>? treeMap,
Object? event,
Object? eventTarget,
DOMNode? target,
Point<num>? client,
Point<num>? offset,
Point<num>? page,
Point<num>? screen,
int button = 0,
int? buttons,
bool altKey = false,
bool ctrlKey = false,
bool shiftKey = false,
bool metaKey = false,
}) {
client ??= Point(0, 0);
return DOMMouseEvent(
treeMap ?? DOMTreeMapDummy(DOMGeneratorDummy()),
event,
eventTarget,
target,
client,
offset ?? client,
page ?? client,
screen ?? client,
button,
buttons,
altKey,
ctrlKey,
shiftKey,
metaKey);
}