dispose method
void
dispose(
[ - bool evict = false
])
Implementation
void dispose([bool evict = false]) {
if (evict) {
try {
// ignore: return_type_invalid_for_catch_error
imageProvider.evict().catchError(print);
} catch (e) {
// this may be never called because catchError will handle errors, however
// we want to avoid random crashes like in #444 / #536
print(e);
}
}
animationController?.removeStatusListener(_onAnimateEnd);
animationController?.dispose();
_imageStream?.removeListener(_listener);
}