toDispose method

void toDispose(
  1. dynamic event()
)

Implementation

void toDispose(Function() event){
  disposeEvents.add(event);
}