OnMessage typedef
OnMessage =
void Function(String message)
A function that takes a message and does something useful with it.
Implementation
typedef OnMessage = void Function(String message);
A function that takes a message and does something useful with it.
typedef OnMessage = void Function(String message);