Unverified Commit e5322acc authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Change some dynamics to Object? and document slot better (#77026)

parent cb867bbe
...@@ -594,7 +594,7 @@ class _CupertinoTextSelectionToolbarItemsElement extends RenderObjectElement { ...@@ -594,7 +594,7 @@ class _CupertinoTextSelectionToolbarItemsElement extends RenderObjectElement {
assert(!_forgottenChildren.contains(child)); assert(!_forgottenChildren.contains(child));
// Handle forgetting a child in children or in a slot. // Handle forgetting a child in children or in a slot.
if (slotToChild.containsKey(child.slot)) { if (slotToChild.containsKey(child.slot)) {
final _CupertinoTextSelectionToolbarItemsSlot slot = child.slot as _CupertinoTextSelectionToolbarItemsSlot; final _CupertinoTextSelectionToolbarItemsSlot slot = child.slot! as _CupertinoTextSelectionToolbarItemsSlot;
slotToChild.remove(slot); slotToChild.remove(slot);
} else { } else {
_forgottenChildren.add(child); _forgottenChildren.add(child);
......
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