cancel<T> method Null safety

void cancel<T>(
  1. dynamic handler(
    1. T
    )
)

Implementation

void cancel<T>(Function(T) handler) {
	_handlers[T]?.remove(handler);
}