emit method
bool
emit({
- required VrInputType type,
- required VrInputSource source,
- String? targetId,
- Map<
String, dynamic> ? data, - bool active = true,
Allocation-free convenience after the pool has been initialized.
Implementation
bool emit({
required VrInputType type,
required VrInputSource source,
String? targetId,
Map<String, dynamic>? data,
bool active = true,
}) {
final event = acquire(
type: type,
source: source,
targetId: targetId,
data: data,
active: active,
);
try {
return submit(event);
} finally {
release(event);
}
}