RenderSliverGrid constructor Null safety

RenderSliverGrid(
  1. {required RenderSliverBoxChildManager childManager,
  2. required SliverGridDelegate gridDelegate}
)

Creates a sliver that contains multiple box children that whose size and position are determined by a delegate.

The childManager and gridDelegate arguments must not be null.

Implementation

RenderSliverGrid({
  required super.childManager,
  required SliverGridDelegate gridDelegate,
}) : assert(gridDelegate != null),
     _gridDelegate = gridDelegate;