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