objectCenter method

Align objectCenter({
  1. Key? key,
  2. double? heightFactor,
  3. double? widthFactor,
})

Can be used to align a widget to center.

Implementation

Align objectCenter({
  Key? key,
  double? heightFactor,
  double? widthFactor,
}) =>
    Align(
      key: key,
      child: this,
      alignment: Alignment.center,
      heightFactor: heightFactor,
      widthFactor: widthFactor,
    );