onClose property
        
        void Function()?
        onClose
        
      
final
      A life-cycle method for when ProviderSubscription is closed.
This callback will only be called once regardless of how many times ProviderSubscription.close is called.
Implementation
final void Function()? onClose;