GridTile constructor Null safety

const GridTile(
  1. {Key? key,
  2. Widget? header,
  3. Widget? footer,
  4. required Widget child}
)

Creates a grid tile.

Must have a child. Does not typically have both a header and a footer.

Implementation

const GridTile({
  super.key,
  this.header,
  this.footer,
  required this.child,
}) : assert(child != null);