From 9870c3f0038597a3c9906c233d9c06b6f3559903 Mon Sep 17 00:00:00 2001 From: Sebastian Engel Date: Wed, 29 Sep 2021 10:30:11 +0200 Subject: [PATCH] Using save access for children property. --- packages/span_builder_test/lib/src/span_builder_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/span_builder_test/lib/src/span_builder_test.dart b/packages/span_builder_test/lib/src/span_builder_test.dart index 7383be0..11b5563 100644 --- a/packages/span_builder_test/lib/src/span_builder_test.dart +++ b/packages/span_builder_test/lib/src/span_builder_test.dart @@ -14,6 +14,6 @@ extension WidgetTesterRichEditExtension on WidgetTester { final innerText = richText.text as TextSpan; return predicate == null ? innerText.children - : innerText.children!.where(predicate); + : innerText.children?.where(predicate); } }