This may be a simple question, but I couldn't find the answer. When I used this code:
RenderRepaintBoundary boundary =
key.currentContext.findRenderObject();
I got error:
A value of type 'RenderObject?' can't be assigned to a variable of type 'RenderRepaintBoundary'.?
It's fine When I use dart version: 2.7.0, makes problem when I changed it to 2.12.0