Skip to content

Commit

Permalink
Removed non null assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammy275 committed May 11, 2023
1 parent 2103afb commit df7afca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/core/controllers/colored_text_editing_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ class ColoredTextEditingController extends TextEditingController {
},
);

Overlay.of(context).insert(overlayEntry!);
Overlay.of(context).insert(
overlayEntry ?? OverlayEntry(builder: (_) => Container()),
);
},
text:
text.substring(mistake.offset, mistake.offset + mistake.length),
Expand Down

0 comments on commit df7afca

Please sign in to comment.