Unverified Commit 21fab6f9 authored by fzyzcjy's avatar fzyzcjy Committed by GitHub

Minor change type nullability (#112778)

parent 4be0cfcb
......@@ -239,7 +239,7 @@ class RenderSliverList extends RenderSliverMultiBoxAdaptor {
if (child == null || indexOf(child!) != index) {
// We are missing a child. Insert it (and lay it out) if possible.
child = insertAndLayoutChild(childConstraints,
after: trailingChildWithLayout,
after: trailingChildWithLayout!,
parentUsesSize: true,
);
if (child == null) {
......
......@@ -481,12 +481,11 @@ abstract class RenderSliverMultiBoxAdaptor extends RenderSliver
@protected
RenderBox? insertAndLayoutChild(
BoxConstraints childConstraints, {
required RenderBox? after,
required RenderBox after,
bool parentUsesSize = false,
}) {
assert(_debugAssertChildListLocked());
assert(after != null);
final int index = indexOf(after!) + 1;
final int index = indexOf(after) + 1;
_createOrObtainChild(index, after: after);
final RenderBox? child = childAfter(after);
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