Button constructor

Button(
  1. Widget child()?, {
  2. Key? key,
})

Implementation

Button(
  Widget Function()? child, {
  Key? key,
}) : super(
        key: key,
        onPressed: null,
        child: child != null ? child() : SizedBox(),
      ) {
  _disabled = false;
}