From 1d7f93e195ed099ec5a492f3557312b0417bb20c Mon Sep 17 00:00:00 2001 From: Miller Adulu Date: Sat, 13 Mar 2021 15:44:22 +0300 Subject: [PATCH] Cast as Node --- lib/models/documents/nodes/container.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/models/documents/nodes/container.dart b/lib/models/documents/nodes/container.dart index 739ae240..2e1c29fa 100644 --- a/lib/models/documents/nodes/container.dart +++ b/lib/models/documents/nodes/container.dart @@ -28,19 +28,19 @@ abstract class Container extends Node { add(T node) { assert(node?.parent == null); node?.parent = this; - _children.add(node!); + _children.add(node as Node); } addFirst(T node) { assert(node?.parent == null); node?.parent = this; - _children.addFirst(node!); + _children.addFirst(node as Node); } void remove(T node) { assert(node?.parent == this); node?.parent = null; - _children.remove(node!); + _children.remove(node as Node); } void moveChildToNewParent(Container? newParent) {