Pascal Welsch

Results 156 comments of Pascal Welsch

Thanks for opening this issue and starting a discussion 👍 I enabled it in few bigger apps I have access to, to check if something has changed since I disabled...

I let this issue sit for a while because the `unawaited` function was moved from `pedantic` to `meta`. I don't mind depending on `meta` but unfortunately, it was reverted DOH!...

You can try the new `dart fix` command. See the [documentation](https://flutter.dev/docs/development/tools/flutter-fix)

static analysis can't help here. A `async*` function without `yield`/`yield*` is fine, returning a `Stream` without elements. In many cases that's exactly what you want.

The code works fine. I was very confused when I saw it at first. ```dart void main() { final name = getName(); print(name); // null } String getName() { }...

Every functions in dart has a return value. Even `void` functions - when casted to `Function` - return `null`. With that logic it's a small step to default to `null`...

Good point, `.asMapOrNull` is missing a `map` parameter as `asListOrNull` offers. I could imagine adding a `mapValues` parameter.

Good idea! FYI: VScode is picking up the [SDK in directory `.flutter` automatically](https://github.com/Dart-Code/Dart-Code/blob/044b98bea380fec832d4cb881c7394e2694ed9fe/src/extension/sdk/utils.ts#L257) ## General - Inject information The only way to inject information into flutter apps is via `--dart-define`....

Sorry, did not run the code before posting 🎸 > @passsy what is the "$@" for in the below Q.E.D. That's why I switched to dart scripts instead of bash....

I don't think this is necessary. With Windows 10 you can install Ubuntu and run the script from there. https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/