center method

Widget center({
  1. Key? key,
  2. double? widthFactor,
  3. double? heightFactor,
})

居中布局

Implementation

Widget center({
  Key? key,
  double? widthFactor,
  double? heightFactor,
}) =>
    Center(
      key: key,
      widthFactor: widthFactor,
      heightFactor: heightFactor,
      child: this,
    );