I would like to understand how can I analyze methods / functions body to find types that are explicitly referenced from it. I have success analyzing m ...
I would like to understand how can I analyze methods / functions body to find types that are explicitly referenced from it. I have success analyzing m ...
Recently I joined project with low quality codebase and I want to set analyzer to strong-mode and set a bunch of strict linter rules. But when I did t ...
I have a bigger project with different rules for the linter written down in the analysis_options yaml file. I want to exclude a subset of rules for ce ...
I would like to write a new custom linter rule. Especially, I want to write a rule that forbids the use of the setState function in flutter. Is ther ...
I have tried to enable the context actions in android studio but am not able to find any suggestions. when I press option + enter Checked in setting ...
I am using an extension on Iterable that adds the following two methods This works as I expected, but when I try to use it in statements where the ...
Dart Analysis Toolbar When I wrote this code in Android Studio, that is what came up in my dart analysis toolbar: The code I wrote How do I prevent t ...
Problem Statement Currently, bringing up the Android Studio Quick Fix menu (Opt/Alt+Enter keyboard shortcut) on AppLocalizations does not suggest imp ...
I'm new to flutter, so I hope my question will not be too much out of scope: I would like to extract meta informations about the app at build time. T ...
I have a file in my project that breaks many lint rules, and I cannot make major changes to it. How can I disable all lints within this file? ...
In Dart, how do I get from the AST to Elements? I generate the AST like this: I can access the declaration nodes, but I would like get to the Elem ...
Background While following London App Brewery's Bitcoin Ticker project, and I got stuck trying to create DropdownMenuItems via a for-in loop. The war ...
I recently replaced deprecated pedantic package with flutter_linter and now I have hundreds warnings like this: it's related to avoid_function_lite ...
For the following code: there is a warning at n1 != null saying The operand can't be null, so the condition is always true. Why does this warning s ...
this code sample import 'package:flutter_test/flutter_test.dart'; void main() { const one = 1; String oneAsString() => one as String; test ...
I'm building a program that use the Dart's AST library, and it works fine as long as I use the Dart interpreter to run the program (dart filename.dart ...
I am processing method statements in a class and i want to find type of an identifier in those statements. Example ...
After upgrading to 0.40.0 I started getting an awkward asterisk suffix sign after any type. Example... print(elementInstance.type.toString()); I us ...
I am using the Flutter INTL package in my app for internationalization. The package generates a generated folder and I want the analyzer to ignore it. ...
Dart analysis often freeze on android studio. So, quick doc and code completion didn't work. I have tried to restart android studio, delete file on f ...