You need a `return root.cre...` here. The analyzer doesn't warn (which it should), but Dart methods implicitly return `null` if nothing is explicitly returned.