gridDelegate property Null safety

SliverGridDelegate gridDelegate

The delegate that controls the size and position of the children.

Implementation

SliverGridDelegate get gridDelegate => _gridDelegate;
void gridDelegate=(SliverGridDelegate value)

Implementation

set gridDelegate(SliverGridDelegate value) {
  assert(value != null);
  if (_gridDelegate == value) {
    return;
  }
  if (value.runtimeType != _gridDelegate.runtimeType ||
      value.shouldRelayout(_gridDelegate)) {
    markNeedsLayout();
  }
  _gridDelegate = value;
}