asCenter method

Center asCenter({
  1. double? widthFactor,
  2. double? heightFactor,
})

转换为 Center,居中布局

Implementation

Center asCenter({
  double? widthFactor,
  double? heightFactor,
}) {
  return Center(
    widthFactor: widthFactor,
    heightFactor: heightFactor,
    child: this,
  );
}