CarEventHandler typedef
Handles an event sent by the native side, such as a tap or a change in the car connection.
name is the event type and args its data. The returned future
completes when Dart has finished handling the event; the native side
waits for it, e.g. to stop the loading indicator on a tapped item.
Implementation
typedef CarEventHandler = Future<Object?> Function(
String name,
Map<String, Object?> args,
);