cToCenter property

Widget cToCenter

Center the widget within its parent.

This extension wraps the widget with a Center widget to horizontally and vertically center it.

Implementation

Widget get cToCenter => Center(
      child: this,
    );