Positioned.center constructor

const Positioned.center({
  1. int? width,
  2. int? height,
  3. required Widget child,
})

Creates a centered positioned widget inside a Stack.

Implementation

const Positioned.center({this.width, this.height, required this.child})
  : left = null,
    top = null,
    right = null,
    bottom = null,
    isCentered = true;