ParentDataWidget<T extends ParentData> constructor Null safety

const ParentDataWidget<T extends ParentData>(
  1. {Key? key,
  2. required Widget child}
)

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

Implementation

const ParentDataWidget({ Key? key, required Widget child })
  : super(key: key, child: child);