dart-sdk/pkg/analysis_server/test/mock_packages
b-stime c1339411bb Adds assist for basic Flutter Builder
Fixes issues such as

* https://github.com/flutter/flutter-intellij/issues/814
* https://github.com/dart-lang/sdk/issues/33957 .

Essentially, in Flutter, it's often useful to create a new context in the UI/widget tree as a place to begin a search towards the trunk of the tree for various state structures attached to lower levels of the tree. The basic `Builder` widget is the official means for creating such a context/entry-point.

The patches in this PR are essentially a copy-paste-tweak from two types of existing, similar assists. The main origin was taken from `FlutterWrapStreamBuilder` which wraps client code with a constructor for the StreamBuilder sub-class. The new assist, provided here, is a little more basic/general than the StreamBuilder so it was able to also adopt assertion and test code from some of the other assists for basic widgets.

Closes https://github.com/dart-lang/sdk/pull/45656
https://github.com/dart-lang/sdk/pull/45656

GitOrigin-RevId: 00a5043e5dbd410f24f30f6503711413341dbe7a
Change-Id: I5f93837af571b4974e35da131112f82cd9359697
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/194941
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-04-12 17:33:06 +00:00
..
.dart_tool Migrate package:analyzer to null safety. 2021-02-01 18:56:04 +00:00
flutter Adds assist for basic Flutter Builder 2021-04-12 17:33:06 +00:00
meta Fix pub.dev URLs throughout SDK repo 2019-11-20 11:30:48 +00:00
pedantic/lib [Analyzer] Reanalyze analysis_options when .packages changes 2020-08-25 15:03:29 +00:00
ui/lib Bulk sort of a subset of the files in analysis_server 2020-03-17 19:13:14 +00:00
vector_math diagnostic fix support for colors, iterables, lists, matrices 2019-10-03 20:05:33 +00:00