);

};

Code after migration:

class

MyMouseRegion

extends

SingleChildRenderObjectWidget

const

MyMouseRegion

({

this

onHoverChange

});

final

ValueChanged

bool

onHoverChange

@override

RenderMouseRegion

createRenderObject

BuildContext

context

return

RenderMouseRegion

onEnter:

onHoverChange

true

);

},

onExit:

onHoverChange

false

);

},

);

@override