Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
1c530a92
Unverified
Commit
1c530a92
authored
Dec 17, 2020
by
Todd Volkert
Committed by
GitHub
Dec 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Override MultiChildRenderObjectElement renderObject getter to provide covariant type (#72530)
parent
d6857bc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+8
-6
No files found.
packages/flutter/lib/src/widgets/framework.dart
View file @
1c530a92
...
...
@@ -6223,6 +6223,11 @@ class MultiChildRenderObjectElement extends RenderObjectElement {
@override
MultiChildRenderObjectWidget
get
widget
=>
super
.
widget
as
MultiChildRenderObjectWidget
;
@override
ContainerRenderObjectMixin
<
RenderObject
,
ContainerParentDataMixin
<
RenderObject
>>
get
renderObject
{
return
super
.
renderObject
as
ContainerRenderObjectMixin
<
RenderObject
,
ContainerParentDataMixin
<
RenderObject
>>;
}
/// The current list of children of this element.
///
/// This list is filtered to hide elements that have been forgotten (using
...
...
@@ -6238,8 +6243,7 @@ class MultiChildRenderObjectElement extends RenderObjectElement {
@override
void
insertRenderObjectChild
(
RenderObject
child
,
IndexedSlot
<
Element
?>
slot
)
{
final
ContainerRenderObjectMixin
<
RenderObject
,
ContainerParentDataMixin
<
RenderObject
>>
renderObject
=
this
.
renderObject
as
ContainerRenderObjectMixin
<
RenderObject
,
ContainerParentDataMixin
<
RenderObject
>>;
final
ContainerRenderObjectMixin
<
RenderObject
,
ContainerParentDataMixin
<
RenderObject
>>
renderObject
=
this
.
renderObject
;
assert
(
renderObject
.
debugValidateChild
(
child
));
renderObject
.
insert
(
child
,
after:
slot
.
value
?.
renderObject
);
assert
(
renderObject
==
this
.
renderObject
);
...
...
@@ -6247,8 +6251,7 @@ class MultiChildRenderObjectElement extends RenderObjectElement {
@override
void
moveRenderObjectChild
(
RenderObject
child
,
IndexedSlot
<
Element
?>
oldSlot
,
IndexedSlot
<
Element
?>
newSlot
)
{
final
ContainerRenderObjectMixin
<
RenderObject
,
ContainerParentDataMixin
<
RenderObject
>>
renderObject
=
this
.
renderObject
as
ContainerRenderObjectMixin
<
RenderObject
,
ContainerParentDataMixin
<
RenderObject
>>;
final
ContainerRenderObjectMixin
<
RenderObject
,
ContainerParentDataMixin
<
RenderObject
>>
renderObject
=
this
.
renderObject
;
assert
(
child
.
parent
==
renderObject
);
renderObject
.
move
(
child
,
after:
newSlot
.
value
?.
renderObject
);
assert
(
renderObject
==
this
.
renderObject
);
...
...
@@ -6256,8 +6259,7 @@ class MultiChildRenderObjectElement extends RenderObjectElement {
@override
void
removeRenderObjectChild
(
RenderObject
child
,
dynamic
slot
)
{
final
ContainerRenderObjectMixin
<
RenderObject
,
ContainerParentDataMixin
<
RenderObject
>>
renderObject
=
this
.
renderObject
as
ContainerRenderObjectMixin
<
RenderObject
,
ContainerParentDataMixin
<
RenderObject
>>;
final
ContainerRenderObjectMixin
<
RenderObject
,
ContainerParentDataMixin
<
RenderObject
>>
renderObject
=
this
.
renderObject
;
assert
(
child
.
parent
==
renderObject
);
renderObject
.
remove
(
child
);
assert
(
renderObject
==
this
.
renderObject
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment