I’ve found the answer and just made this package (to do all kinds of transformations, not only rotate by the center.
var height = 30;
var width = 30;
.rotateDegrees(180, origin: Offset(width/2, height/2))
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.