@@ -123,7 +123,7 @@ class _GroupsFieldState extends State<GroupsField> {
123123 event is SuggestionSelect )
124124 .listen ((state) {
125125 if (state is GroupExistedFieldsWidgetsDone ) {
126- SchedulerBinding .instance! .addPostFrameCallback (
126+ SchedulerBinding .instance.addPostFrameCallback (
127127 (timeStamp) {
128128 final lastChildElement =
129129 _lastFieldKey.currentContext? .findRenderObject () as RenderBox ? ;
@@ -154,7 +154,7 @@ class _GroupsFieldState extends State<GroupsField> {
154154 );
155155 }
156156
157- SchedulerBinding .instance! .addPostFrameCallback (
157+ SchedulerBinding .instance.addPostFrameCallback (
158158 (timeStamp) {
159159 final lastChildElement = _lastFieldKey.currentContext == null
160160 ? null
@@ -188,7 +188,7 @@ class _GroupsFieldState extends State<GroupsField> {
188188
189189 _textEditingController.clear ();
190190
191- SchedulerBinding .instance! .addPostFrameCallback (
191+ SchedulerBinding .instance.addPostFrameCallback (
192192 (timeStamp) {
193193 final lastChildElement =
194194 _lastFieldKey.currentContext! .findRenderObject () as RenderBox ;
@@ -211,7 +211,7 @@ class _GroupsFieldState extends State<GroupsField> {
211211 }
212212
213213 if (state is SuggestionsReady ) {
214- SchedulerBinding .instance! .addPostFrameCallback ((_) {
214+ SchedulerBinding .instance.addPostFrameCallback ((_) {
215215 if (_overlayEntry != null ) {
216216 _overlayEntry! .remove ();
217217 _overlayEntry = null ;
@@ -284,7 +284,7 @@ class _GroupsFieldState extends State<GroupsField> {
284284 _overlayEntry? .remove ();
285285 _overlayEntry = null ;
286286
287- SchedulerBinding .instance! .addPostFrameCallback (
287+ SchedulerBinding .instance.addPostFrameCallback (
288288 (timeStamp) {
289289 final lastChildElement =
290290 _lastFieldKey.currentContext! .findRenderObject () as RenderBox ;
@@ -307,7 +307,7 @@ class _GroupsFieldState extends State<GroupsField> {
307307 }
308308 });
309309
310- SchedulerBinding .instance! .addPostFrameCallback ((timeStamp) {
310+ SchedulerBinding .instance.addPostFrameCallback ((timeStamp) {
311311 _groupsFieldBloc.eventController.add (PrepareExistedGroupsFieldsWidgets ());
312312 });
313313 }
@@ -329,7 +329,7 @@ class _GroupsFieldState extends State<GroupsField> {
329329 Widget buildLayout (BuildContext context) {
330330 return NotificationListener <SizeChangedLayoutNotification >(
331331 onNotification: (notification) {
332- SchedulerBinding .instance! .addPostFrameCallback ((timeStamp) {
332+ SchedulerBinding .instance.addPostFrameCallback ((timeStamp) {
333333 final lastChildElement =
334334 _lastFieldKey.currentContext? .findRenderObject () as RenderBox ? ;
335335
0 commit comments