RenderSliverGrid constructor

RenderSliverGrid({@required RenderSliverBoxChildManager childManager, @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 RenderSliverBoxChildManager childManager,
  @required SliverGridDelegate gridDelegate,
}) : assert(gridDelegate != null),
     _gridDelegate = gridDelegate,
     super(childManager: childManager);