Home > Blockchain >  Flutter app on Chrome - no longer running - Error: The getter 'completert' isn't defi
Flutter app on Chrome - no longer running - Error: The getter 'completert' isn't defi

Time:01-19

This afternoon - out of the blue - my Flutter app is no longer running on Chrome

I get the following error...

Waiting for connection from debug service on Chrome...
../../sdk/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.13.5/lib/src/browser_client.dart:56:7: Error: The getter 'completert' isn't defined for the class 'BrowserClient'.
 - 'BrowserClient' is from 'package:http/src/browser_client.dart' ('../../sdk/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.13.5/lib/src/browser_client.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'completert'.
      completert.complete(StreamedResponse(
      ^^^^^^^^^^
Failed to compile application.

Any suggestions?

CodePudding user response:

Fixed by downloading an installing the latest DART build

CodePudding user response:

This error message suggests that there is a problem with the code in your Flutter app that is causing the app to no longer run when it is opened in Chrome. The specific issue seems to be related to the 'completert' getter not being defined for the 'BrowserClient' class.

It's likely that this error is caused by a missing or incorrect import statement in the file where the BrowserClient class is defined. Make sure you have imported 'dart:async' and also check the spelling of 'completert' and the class name 'BrowserClient'

Also, check that 'completert' is used correctly in the code, and that it is being accessed from an instance of the 'BrowserClient' class. It could also be possible that the error is coming from a plugin or package that you are using in your app.

I would recommend reviewing the code in the file where the error is occurring, and checking for any missing or incorrect import statements or class/getter name spelling errors. If you are still not able to resolve the issue, please provide more context so that I can give more specific recommendations.

  • Related