Creates a grid with a custom delegate.
The delegate argument must not be null.
Source
CustomGrid({
Key key,
@required this.delegate,
List<Widget> children: const <Widget>[],
}) : super(key: key, children: children) {
assert(delegate != null);
}