off method

void off(
  1. String type,
  2. void callback(
    1. PaletteMessage
    )
)

Remove a callback.

Implementation

void off(String type, void Function(PaletteMessage) callback) {
  _typeCallbacks[type]?.remove(callback);
}