GridView constructor Null safety

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

Implementation

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