center method

Future<void> center({
  1. bool animate = false,
})

Moves window to the center of the screen.

Implementation

Future<void> center({bool animate = false}) async {
  await setAlignment(Alignment.center, animate: animate);
}