@override

RenderMouseRegion

createRenderObject

BuildContext

context

return

RenderMouseRegion

onEnter:

onHoverChange

true

);

},

onExit:

onHoverChange

false

);

},

);

@override

void

updateRenderObject

BuildContext

context

RenderMouseRegion

renderObject

renderObject

onEnter

onHoverChange

true

);

onExit

onHoverChange

false

);

};

Code after migration: