on<E extends T> method

  1. @override
void on<E extends T>(
  1. AtomListener<E> listener
)
override

Adds a listener which executes when value is set as E

Implementation

@override
void on<E extends T>(AtomListener<E> listener) {
  _rx.listen((value) {
    if (value is E) {
      listener(value);
    }
  });
}