didFinishLayout method Null safety

  1. @override
void didFinishLayout()
override

Called at the end of layout to indicate that layout is now complete.

Implementation

@override
void didFinishLayout() {
  assert(debugAssertChildListLocked());
  final int firstIndex = _childElements.firstKey() ?? 0;
  final int lastIndex = _childElements.lastKey() ?? 0;
  (widget as SliverMultiBoxAdaptorWidget).delegate.didFinishLayout(firstIndex, lastIndex);
}