mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Minor change type nullability (#112778)
This commit is contained in:
parent
4be0cfcb3f
commit
21fab6f960
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user