Improve sync*/async* opt outs (#95286)

This commit is contained in:
Dan Field
2021-12-14 19:00:52 -08:00
committed by GitHub
parent aa599358e6
commit bf60291493
3 changed files with 32 additions and 11 deletions

View File

@@ -795,7 +795,8 @@ class RenderTable extends RenderBox {
/// column, in row order, starting from the first row.
///
/// This is a lazily-evaluated iterable.
// flutter_ignore: no_sync_async_star
// The following uses sync* because it is public API documented to return a
// lazy iterable.
Iterable<RenderBox> column(int x) sync* {
for (int y = 0; y < rows; y += 1) {
final int xy = x + y * columns;
@@ -809,7 +810,8 @@ class RenderTable extends RenderBox {
/// row, in column order, starting with the first column.
///
/// This is a lazily-evaluated iterable.
// flutter_ignore: no_sync_async_star
// The following uses sync* because it is public API documented to return a
// lazy iterable.
Iterable<RenderBox> row(int y) sync* {
final int start = y * columns;
final int end = (y + 1) * columns;