on method
Listen for a specific message type.
Implementation
void on(String type, void Function(PaletteMessage) callback) {
_typeCallbacks.putIfAbsent(type, () => []).add(callback);
}
Listen for a specific message type.
void on(String type, void Function(PaletteMessage) callback) {
_typeCallbacks.putIfAbsent(type, () => []).add(callback);
}