10
rantbook
32d

Go home Dart, you're drunk

A value of type 'String' can't be returned from function 'myFunction' because it has a return type of 'String'. dart(return_of_invalid_type)
string.dart(102, 16): String is defined in C:\src\flutter\bin\cache\pkg\sky_engine\lib\core\string.dart
string.dart(102, 16): String is defined in C:\src\flutter\bin\cache\pkg\sky_engine\lib\core\string.dart

Comments
  • 0
    Get me some screen caps of your code, I've just about seen and dealt with the majority of errors Dart violently pukes on you!!

    I don't know how much Dart and Flutter code you've written, but the Dart team is gonna be dropping "null safety" soon (if it hasn't already in the new Dart SDK) which is dope!
  • 0
    Oh, more thing-

    Unless you need your functions/methods to return values explicitly, use void:

    void myFunction () {
    // No return statement needed
    }
Add Comment