-
Consider the following:
```dart
final String foo = null;
void main() {
if(foo?.isNotEmpty){
print("true");
} else {
print("not true");
}
}
```
Even though this executes…
-
I have been using this workflow for a while without problems.
Today I tried to switch to "self-hosted" runner and faced a problem with the flutter installation:
```
> Run flutter pub get
Runni…
-
Consider the following program:
```dart
abstract class A1 {
num g;
}
abstract class A2 {
int g;
}
abstract class B implements A1, A2 {}
class C extends B {
int get g => 42;
…
-
URL: https://pub.dev/packages/katex_flutter#-analysis-tab-
The dart analysis shows an non-existent error on the `katex_flutter` package:
```
line 16 col 8: The name 'platformViewRegistry' is being …
-
I have my model classes in their own package, so that I can easily share them with the multiple apps I am building.
When working in the app, I was able to use the built class, and all the custom meth…
-
```dart
class A {
void test() {}
}
main() {
A? a = null;
a ?.. test();
}
```
Now run analyzer with 'non-nullable' experiment flag
dartanalyzer --enable-experiment=non-nullable stat…
-
See also https://github.com/dart-lang/sdk/issues/39865 and https://github.com/dart-lang/sdk/issues/40088
I will keep the issue for the analyzer open for now, because I don't remember this code, and d…
-
This code in the dartPad not working well, it should report an error
```dart
class TagTable {
static Map records = const {
'RCRD_ALL': ['key1', 'key2'],
};
}
void main() {
print…
-
It does not matter if the declaration that produces the type is declared in a legacy library. The type is non-nullable if not annotated in an opted-in library.
```
--- Command "dart2analyzer" (too…
-
The following program resolves an extension on `T?` to an `int?` receiver, which should result in `T` being resolved to `int`, and hence the return type of `foo` being `int`:
```dart
extension Tes…