addListener method
Returns true
if key
was not already used for another
listener.
If another listener was previously associated with key
, then
the only one gets replaced with listener
and false
gets
returned.
Implementation
@override
bool addListener(K key, VoidCallback listener) =>
_addListener(key, _Listener(listener));