cancel method Null safety

void cancel()

Cancels listening the provider.