build method Null safety

Widget? build(
  1. BuildContext context,
  2. int index
)

Return the child at the given index. If the child at the given index does not exist, return null.

Implementation

Widget? build(BuildContext context, int index);