ListView constructor Null safety

const ListView(
  1. {Key? key,
  2. Axis scrollDirection,
  3. bool reverse,
  4. bool? primary,
  5. ScrollPhysics? physics,
  6. bool shrinkWrap,
  7. EdgeInsets? padding,
  8. double? itemExtent,
  9. Widget? prototypeItem,
  10. bool addAutomaticKeepAlives,
  11. bool addRepaintBoundaries,
  12. bool addSemanticIndexes,
  13. double? cacheExtent,
  14. List<Widget> children,
  15. int? semanticChildCount,
  16. String? restorationId,
  17. Clip clipBehavior}
)

Implementation

const factory ListView(
    {final Key? key,
    final Axis scrollDirection,
    final bool reverse,
    final bool? primary,
    final ScrollPhysics? physics,
    final bool shrinkWrap,
    final EdgeInsets? padding,
    final double? itemExtent,
    final Widget? prototypeItem,
    final bool addAutomaticKeepAlives,
    final bool addRepaintBoundaries,
    final bool addSemanticIndexes,
    final double? cacheExtent,
    final List<Widget> children,
    final int? semanticChildCount,
    final String? restorationId,
    final Clip clipBehavior}) = _$ListView;