dispose method
void
dispose()
Disposes the value, error and future associated.
Implementation
void dispose() {
// A non-nullable `T` can't have a `null` future value: keep the original.
if (null is T) {
_future = Future<T>.value(null as T);
}
_error = null;
_value = null;
}