Center constructor Null safety

const Center(
  1. {Key? key,
  2. double? widthFactor,
  3. double? heightFactor,
  4. Widget? child}
)

Creates a widget that centers its child.

Implementation

const Center({ Key? key, double? widthFactor, double? heightFactor, Widget? child })
  : super(key: key, widthFactor: widthFactor, heightFactor: heightFactor, child: child);