didUnmountRenderObject method

  1. @override
void didUnmountRenderObject(
  1. covariant RenderImage renderObject

A render object previously associated with this widget has been removed from the tree. The given RenderObject will be of the same type as returned by this object's createRenderObject.


void didUnmountRenderObject(RenderImage renderObject) {
  // Have the render object dispose its image handle.
  renderObject.image = null;