SingleChildRenderObjectWidget constructor Null safety

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

Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.

Implementation

const SingleChildRenderObjectWidget({ Key? key, this.child }) : super(key: key);