onAdd method

  1. @override
void onAdd(
  1. T event
)
override

An extension point for sub-classes. Perform any side-effect / state management you need to here, rather than overriding the add method directly.

Implementation

@override
void onAdd(T event) => _wrapper.setValue(event);