Unverified Commit 117407b0 authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Revert "Minor change type nullability (#112778)" (#113246)

This reverts commit 21fab6f9.
parent 883c1fe6
...@@ -239,7 +239,7 @@ class RenderSliverList extends RenderSliverMultiBoxAdaptor { ...@@ -239,7 +239,7 @@ class RenderSliverList extends RenderSliverMultiBoxAdaptor {
if (child == null || indexOf(child!) != index) { if (child == null || indexOf(child!) != index) {
// We are missing a child. Insert it (and lay it out) if possible. // We are missing a child. Insert it (and lay it out) if possible.
child = insertAndLayoutChild(childConstraints, child = insertAndLayoutChild(childConstraints,
after: trailingChildWithLayout!, after: trailingChildWithLayout,
parentUsesSize: true, parentUsesSize: true,
); );
if (child == null) { if (child == null) {
......
...@@ -481,11 +481,12 @@ abstract class RenderSliverMultiBoxAdaptor extends RenderSliver ...@@ -481,11 +481,12 @@ abstract class RenderSliverMultiBoxAdaptor extends RenderSliver
@protected @protected
RenderBox? insertAndLayoutChild( RenderBox? insertAndLayoutChild(
BoxConstraints childConstraints, { BoxConstraints childConstraints, {
required RenderBox after, required RenderBox? after,
bool parentUsesSize = false, bool parentUsesSize = false,
}) { }) {
assert(_debugAssertChildListLocked()); assert(_debugAssertChildListLocked());
final int index = indexOf(after) + 1; assert(after != null);
final int index = indexOf(after!) + 1;
_createOrObtainChild(index, after: after); _createOrObtainChild(index, after: after);
final RenderBox? child = childAfter(after); final RenderBox? child = childAfter(after);
if (child != null && indexOf(child) == index) { if (child != null && indexOf(child) == index) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment