clear abstract method
void
clear()
Removes all registered callbacks from the handler.
After calling this method, the handler contains no callbacks and call will return an empty map.
Example:
handler.register((n) => n * 2);
handler.register((n) => n * 3);
handler.clear();
print(handler(5)); // {} (empty map)
Implementation
void clear();