mounted property

  1. @override
bool mounted
override

An utility to know if a provider was destroyed or not.

This is useful when dealing with asynchronous operations, as the provider may have potentially be destroyed before the end of the asynchronous operation. In that case, we may want to stop performing further tasks.

Most providers are never disposed, so in most situations you do not have to care about this.

Implementation

@override
bool get mounted => _mounted;