Public report of flutter/packages, published 23 October 2026. It has the same score, grades and number of
findings as the full report. The details of security findings (where they are in the code, which known
vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.10.5). Watchdog signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey →
Signed and filed in the standard's public register, 23 October 2026, 14:52 UTC · Survey ID cd_00f676333cee4f95b537478b8f9142cb
flutter/packages
Measured 23 October 2026, 14:41 UTC, at code version 108dad0
A regression is a drop of 0.5 points or more in the score, or of 2.5 or more out of 10 in a dimension, since the last survey.
Test reliability is not measured: The suite could not be re-run, but the repository declares tests of its own unreliable.
CAI scoreAdequate
CriticalWeakAdequateStrongExemplary
No change since the last survey
The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.
A very large codebase: 617,114 lines of product code in 162 projects, tests not counted · Estimated rebuild effort: about 10.1 person-years · Weakest lens: Production Readiness, 59
Findings by how serious they are
39 critical3023 serious239 minor
7 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
23 October 2026, 14:41 UTC
A measurement, not a certificate. The Code Assurance Index records a number
together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee
the code. The standard was written by Canine Development, which also builds Watchdog. It is open to any tool that
implements it, and today Watchdog is the only one that does.
The score is deterministic, which means the same code always gets the same score. Watchdog works it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸
67of 71 dimensions measured by tools. The other 4 are advisory notes from an AI model, which explain the code but don't count towards the score.
3282of 3301 findings point to an exact file and line, so you can open each one in the code. The other 19 concern the repository as a whole, such as missing documentation.
71dimensions across 7 lenses, read from 617,114 lines of product code in 162 projects.
flutter/packages scores 64 out of 100 and is rated Adequate, while five of its seven lenses score higher still: Event Sourcing at 100 and Architecture at 97, both rated Exemplary, Code Health at 77 and Maturity at 72, both rated Strong, and Performance at 67, rated Adequate.
The score is lower than those five because the weakest lens counts most, and here that is Production Readiness, which scores 59 and is rated Adequate. Its Security & performance tooling dimension scores 3 out of 10, and until that reaches 4, Production Readiness can't be rated higher than Adequate. The first actions are to add a SAST step to CI running what this repository's stack ships: the Dart analyzer's security lints plus `semgrep --config=auto` — so a security regression fails the build instead of landing and to extend structured logging to the remaining runnable modules so everything you run is diagnosable in production, and if Production Readiness rose to 70, the score would rise from 64 to about 68.
39 findings are critical: 18 in Knowledge Freshness, 15 in Secrets (history), three in Static Analysis (SAST) and three in Test Reliability.
Watchdog couldn't measure 5 dimensions in this code, among them Code Coverage, Dependency Hygiene and Navigability, so they are left out of the score. The product code is 617,114 lines, which would take an estimated 10.1 person-years, around €1,500,000, to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
Exception handling · Swallowed exception (caught, then discarded) packages/pigeon/lib/src/pigeon_lib_internal.dart
Exception handling · Swallowed exception (caught, then discarded) packages/pigeon/lib/src/pigeon_lib_internal.dart
Incompleteness & stubs · Hollow method — returns a constant without doing the work packages/material_ui/lib/src/about.dart
Incompleteness & stubs · Hollow method — returns a constant without doing the work packages/material_ui/lib/src/about.dart
Watchdog compares every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.
Fixed since the last survey: 102 findings
These 102 critical or serious findings were in the previous survey, on 9 October 2026, and are gone from this one. The first 100 are listed here.
God Classes · FileTooLong: src/icon_button.dart packages/material_ui/lib/src/icon_button.dart
Code Duplication · Edited copy of a member (98 corresponding lines) packages/material_ui/tool/gen_defaults/temporarily_excluded/templates/range_slider_template.dart
Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart
Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart
Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) packages/pigeon/lib/src/swift/swift_generator.dart
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) packages/material_ui/lib/src/icon_button.dart
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) packages/vector_graphics_codec/lib/vector_graphics_codec.dart
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift
Test Reliability · Test declared unreliable: skipFlakyPurchaseTest packages/in_app_purchase/in_app_purchase_storekit/example/ios/RunnerTests/InAppPurchaseStoreKit2PluginTests.swift
Test Reliability · Test declared unreliable: skipFlakyPurchaseTest packages/in_app_purchase/in_app_purchase_storekit/example/shared/RunnerTests/InAppPurchaseStoreKit2PluginTests.swift
€490,000 to €2,500,000, for 8,160 to 25,888 hours of work, about 10.1 person-years for 6 to 20 engineers
Difficulty of the problem
Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor
×0.9 at a score of 64. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Very large: 617,114 lines of product code
How the estimate is made: Watchdog prices the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Add a SAST step to CI running what this repository's stack ships: the Dart analyzer's security lints plus `semgrep --config=auto` — so a security regression fails the build instead of landing.
Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
Raises the score by about 3 points · Medium effort · Observability
3
Stamp a version in your build/package manifest (e.g.
csproj <Version>, package.json, pyproject.toml, Cargo.toml, or a VERSION file) or tag releases with semver so builds and releases are traceable.
Raises the score by about 3 points · Medium effort · Release Hygiene
Diagnosis: what the measurements show together
Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.
Where the investment is most exposed · Value at risk
This code would cost about €1,500,000 to build again, about 10.1 person-years of work. Its weakest lens is Production Readiness, at 59 (Adequate). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Add a SAST step to CI running what this repository's stack ships: the Dart analyzer's security lints plus `semgrep --config=auto` — so a security regression fails the build instead of landing. Of all the actions in this report, it raises the score most for the work it takes: about 4 points for medium effort. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 7.4 out of 10. Code at that level is slower to change than clean code, and Watchdog estimates the extra work at 2% to 5% on every change. The history of the code shows how much it changes: about 199,053 lines over the last 90 days, which is about 807,270 lines a year. At that pace, the extra work comes to an estimated 40.4 to 269.1 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of Watchdog's own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.
Architecture — module dependency graph
Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways — a layering smell or cycle. A clean layered graph has none.
Architecture: which parts of the code depend on which
The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.
522 modules, with 503 dependencies between them. 8 loops run through 35 of the modules, marked above the diagonal.
The table shows the 40 modules with the most connections; 482 more are left out to keep it readable.
Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
androidx.test.espresso.flutter.api uses androidx.test.espresso.flutter.model, so a change to androidx.test.espresso.flutter.model can break androidx.test.espresso.flutter.api, while a change to androidx.test.espresso.flutter.api can't break androidx.test.espresso.flutter.model.
Position
Below the diagonal: androidx.test.espresso.flutter.api uses a module listed above it, which is the healthy direction.
16→29 io.flutter.plugins.camera.features.autofocus uses io.flutter.plugins.camera.featurespart of a loop✕
Connections
1 pair of types, where a type in io.flutter.plugins.camera.features.autofocus uses a type in io.flutter.plugins.camera.features.
io.flutter.plugins.camera.features.autofocus uses io.flutter.plugins.camera.features, so a change to io.flutter.plugins.camera.features can break io.flutter.plugins.camera.features.autofocus, while a change to io.flutter.plugins.camera.features.autofocus can't break io.flutter.plugins.camera.features.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
16→31 io.flutter.plugins.camera.features.autofocus uses io.flutter.plugins.camerapart of a loop✕
Connections
1 pair of types, where a type in io.flutter.plugins.camera.features.autofocus uses a type in io.flutter.plugins.camera.
io.flutter.plugins.camera.features.autofocus uses io.flutter.plugins.camera, so a change to io.flutter.plugins.camera can break io.flutter.plugins.camera.features.autofocus, while a change to io.flutter.plugins.camera.features.autofocus can't break io.flutter.plugins.camera.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
17→29 io.flutter.plugins.camera.features.exposurelock uses io.flutter.plugins.camera.featurespart of a loop✕
Connections
1 pair of types, where a type in io.flutter.plugins.camera.features.exposurelock uses a type in io.flutter.plugins.camera.features.
io.flutter.plugins.camera.features.exposurelock uses io.flutter.plugins.camera.features, so a change to io.flutter.plugins.camera.features can break io.flutter.plugins.camera.features.exposurelock, while a change to io.flutter.plugins.camera.features.exposurelock can't break io.flutter.plugins.camera.features.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
17→31 io.flutter.plugins.camera.features.exposurelock uses io.flutter.plugins.camerapart of a loop✕
Connections
1 pair of types, where a type in io.flutter.plugins.camera.features.exposurelock uses a type in io.flutter.plugins.camera.
io.flutter.plugins.camera.features.exposurelock uses io.flutter.plugins.camera, so a change to io.flutter.plugins.camera can break io.flutter.plugins.camera.features.exposurelock, while a change to io.flutter.plugins.camera.features.exposurelock can't break io.flutter.plugins.camera.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
18→29 io.flutter.plugins.camera.features.flash uses io.flutter.plugins.camera.featurespart of a loop✕
Connections
1 pair of types, where a type in io.flutter.plugins.camera.features.flash uses a type in io.flutter.plugins.camera.features.
io.flutter.plugins.camera.features.flash uses io.flutter.plugins.camera.features, so a change to io.flutter.plugins.camera.features can break io.flutter.plugins.camera.features.flash, while a change to io.flutter.plugins.camera.features.flash can't break io.flutter.plugins.camera.features.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
18→31 io.flutter.plugins.camera.features.flash uses io.flutter.plugins.camerapart of a loop✕
Connections
1 pair of types, where a type in io.flutter.plugins.camera.features.flash uses a type in io.flutter.plugins.camera.
io.flutter.plugins.camera.features.flash uses io.flutter.plugins.camera, so a change to io.flutter.plugins.camera can break io.flutter.plugins.camera.features.flash, while a change to io.flutter.plugins.camera.features.flash can't break io.flutter.plugins.camera.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
19→29 io.flutter.plugins.camera.features.resolution uses io.flutter.plugins.camera.featurespart of a loop✕
Connections
1 pair of types, where a type in io.flutter.plugins.camera.features.resolution uses a type in io.flutter.plugins.camera.features.
io.flutter.plugins.camera.features.resolution uses io.flutter.plugins.camera.features, so a change to io.flutter.plugins.camera.features can break io.flutter.plugins.camera.features.resolution, while a change to io.flutter.plugins.camera.features.resolution can't break io.flutter.plugins.camera.features.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
19→31 io.flutter.plugins.camera.features.resolution uses io.flutter.plugins.camerapart of a loop✕
Connections
1 pair of types, where a type in io.flutter.plugins.camera.features.resolution uses a type in io.flutter.plugins.camera.
io.flutter.plugins.camera.features.resolution uses io.flutter.plugins.camera, so a change to io.flutter.plugins.camera can break io.flutter.plugins.camera.features.resolution, while a change to io.flutter.plugins.camera.features.resolution can't break io.flutter.plugins.camera.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
20→29 io.flutter.plugins.camera.features.sensororientation uses io.flutter.plugins.camera.featurespart of a loop✕
Connections
1 pair of types, where a type in io.flutter.plugins.camera.features.sensororientation uses a type in io.flutter.plugins.camera.features.
io.flutter.plugins.camera.features.sensororientation uses io.flutter.plugins.camera.features, so a change to io.flutter.plugins.camera.features can break io.flutter.plugins.camera.features.sensororientation, while a change to io.flutter.plugins.camera.features.sensororientation can't break io.flutter.plugins.camera.features.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
20→31 io.flutter.plugins.camera.features.sensororientation uses io.flutter.plugins.camerapart of a loop✕
Connections
3 pairs of types, where a type in io.flutter.plugins.camera.features.sensororientation uses a type in io.flutter.plugins.camera.
io.flutter.plugins.camera.features.sensororientation uses io.flutter.plugins.camera, so a change to io.flutter.plugins.camera can break io.flutter.plugins.camera.features.sensororientation, while a change to io.flutter.plugins.camera.features.sensororientation can't break io.flutter.plugins.camera.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
21→28 packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios uses repositorypart of a loop✕
Connections
2 pairs of types, where a type in packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios uses a type in repository.
packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios uses repository, so a change to repository can break packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios, while a change to packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios can't break repository.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
21→32 packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios uses packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_adspart of a loop✕
Connections
1 pair of types, where a type in packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios uses a type in packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads.
packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios uses packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads, so a change to packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads can break packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios, while a change to packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios can't break packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
21→33 packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundationpart of a loop✕
Connections
1 pair of types, where a type in packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios uses a type in packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation, so a change to packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation can break packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios, while a change to packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios can't break packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
22→28 repository.src uses repositorypart of a loop✕
Connections
245 pairs of types, where a type in repository.src uses a type in repository. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
androidx.test.espresso.flutter uses androidx.test.espresso.flutter.api, so a change to androidx.test.espresso.flutter.api can break androidx.test.espresso.flutter, while a change to androidx.test.espresso.flutter can't break androidx.test.espresso.flutter.api.
Position
Below the diagonal: androidx.test.espresso.flutter uses a module listed above it, which is the healthy direction.
androidx.test.espresso.flutter.action uses androidx.test.espresso.flutter.model, so a change to androidx.test.espresso.flutter.model can break androidx.test.espresso.flutter.action, while a change to androidx.test.espresso.flutter.action can't break androidx.test.espresso.flutter.model.
Position
Below the diagonal: androidx.test.espresso.flutter.action uses a module listed above it, which is the healthy direction.
androidx.test.espresso.flutter.action uses androidx.test.espresso.flutter.api, so a change to androidx.test.espresso.flutter.api can break androidx.test.espresso.flutter.action, while a change to androidx.test.espresso.flutter.action can't break androidx.test.espresso.flutter.api.
Position
Below the diagonal: androidx.test.espresso.flutter.action uses a module listed above it, which is the healthy direction.
androidx.test.espresso.flutter.internal.protocol.impl uses androidx.test.espresso.flutter.model, so a change to androidx.test.espresso.flutter.model can break androidx.test.espresso.flutter.internal.protocol.impl, while a change to androidx.test.espresso.flutter.internal.protocol.impl can't break androidx.test.espresso.flutter.model.
Position
Below the diagonal: androidx.test.espresso.flutter.internal.protocol.impl uses a module listed above it, which is the healthy direction.
androidx.test.espresso.flutter.internal.protocol.impl uses androidx.test.espresso.flutter.api, so a change to androidx.test.espresso.flutter.api can break androidx.test.espresso.flutter.internal.protocol.impl, while a change to androidx.test.espresso.flutter.internal.protocol.impl can't break androidx.test.espresso.flutter.api.
Position
Below the diagonal: androidx.test.espresso.flutter.internal.protocol.impl uses a module listed above it, which is the healthy direction.
io.flutter.plugins.camera.features.exposurepoint uses io.flutter.plugins.camera.features.sensororientation, so a change to io.flutter.plugins.camera.features.sensororientation can break io.flutter.plugins.camera.features.exposurepoint, while a change to io.flutter.plugins.camera.features.exposurepoint can't break io.flutter.plugins.camera.features.sensororientation.
Position
Below the diagonal: io.flutter.plugins.camera.features.exposurepoint uses a module listed above it, which is the healthy direction.
26→29 io.flutter.plugins.camera.features.exposurepoint uses io.flutter.plugins.camera.featurespart of a loop✕
Connections
2 pairs of types, where a type in io.flutter.plugins.camera.features.exposurepoint uses a type in io.flutter.plugins.camera.features.
io.flutter.plugins.camera.features.exposurepoint uses io.flutter.plugins.camera.features, so a change to io.flutter.plugins.camera.features can break io.flutter.plugins.camera.features.exposurepoint, while a change to io.flutter.plugins.camera.features.exposurepoint can't break io.flutter.plugins.camera.features.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
26→31 io.flutter.plugins.camera.features.exposurepoint uses io.flutter.plugins.camerapart of a loop✕
Connections
1 pair of types, where a type in io.flutter.plugins.camera.features.exposurepoint uses a type in io.flutter.plugins.camera.
io.flutter.plugins.camera.features.exposurepoint uses io.flutter.plugins.camera, so a change to io.flutter.plugins.camera can break io.flutter.plugins.camera.features.exposurepoint, while a change to io.flutter.plugins.camera.features.exposurepoint can't break io.flutter.plugins.camera.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
io.flutter.plugins.camera.features.focuspoint uses io.flutter.plugins.camera.features.sensororientation, so a change to io.flutter.plugins.camera.features.sensororientation can break io.flutter.plugins.camera.features.focuspoint, while a change to io.flutter.plugins.camera.features.focuspoint can't break io.flutter.plugins.camera.features.sensororientation.
Position
Below the diagonal: io.flutter.plugins.camera.features.focuspoint uses a module listed above it, which is the healthy direction.
27→29 io.flutter.plugins.camera.features.focuspoint uses io.flutter.plugins.camera.featurespart of a loop✕
Connections
2 pairs of types, where a type in io.flutter.plugins.camera.features.focuspoint uses a type in io.flutter.plugins.camera.features.
io.flutter.plugins.camera.features.focuspoint uses io.flutter.plugins.camera.features, so a change to io.flutter.plugins.camera.features can break io.flutter.plugins.camera.features.focuspoint, while a change to io.flutter.plugins.camera.features.focuspoint can't break io.flutter.plugins.camera.features.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
27→31 io.flutter.plugins.camera.features.focuspoint uses io.flutter.plugins.camerapart of a loop✕
Connections
1 pair of types, where a type in io.flutter.plugins.camera.features.focuspoint uses a type in io.flutter.plugins.camera.
io.flutter.plugins.camera.features.focuspoint uses io.flutter.plugins.camera, so a change to io.flutter.plugins.camera can break io.flutter.plugins.camera.features.focuspoint, while a change to io.flutter.plugins.camera.features.focuspoint can't break io.flutter.plugins.camera.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
repository uses packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios, so a change to packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios can break repository, while a change to repository can't break packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios.
Position
Below the diagonal: repository uses a module listed above it, which is the healthy direction.
551 pairs of types, where a type in repository uses a type in repository.src. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
repository uses packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads, so a change to packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads can break repository, while a change to repository can't break packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
28→33 repository uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundationpart of a loop✕
Connections
2 pairs of types, where a type in repository uses a type in packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
repository uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation, so a change to packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation can break repository, while a change to repository can't break packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
io.flutter.plugins.camera.features uses io.flutter.plugins.camera.features.autofocus, so a change to io.flutter.plugins.camera.features.autofocus can break io.flutter.plugins.camera.features, while a change to io.flutter.plugins.camera.features can't break io.flutter.plugins.camera.features.autofocus.
Position
Below the diagonal: io.flutter.plugins.camera.features uses a module listed above it, which is the healthy direction.
io.flutter.plugins.camera.features uses io.flutter.plugins.camera.features.exposurelock, so a change to io.flutter.plugins.camera.features.exposurelock can break io.flutter.plugins.camera.features, while a change to io.flutter.plugins.camera.features can't break io.flutter.plugins.camera.features.exposurelock.
Position
Below the diagonal: io.flutter.plugins.camera.features uses a module listed above it, which is the healthy direction.
io.flutter.plugins.camera.features uses io.flutter.plugins.camera.features.flash, so a change to io.flutter.plugins.camera.features.flash can break io.flutter.plugins.camera.features, while a change to io.flutter.plugins.camera.features can't break io.flutter.plugins.camera.features.flash.
Position
Below the diagonal: io.flutter.plugins.camera.features uses a module listed above it, which is the healthy direction.
io.flutter.plugins.camera.features uses io.flutter.plugins.camera.features.resolution, so a change to io.flutter.plugins.camera.features.resolution can break io.flutter.plugins.camera.features, while a change to io.flutter.plugins.camera.features can't break io.flutter.plugins.camera.features.resolution.
Position
Below the diagonal: io.flutter.plugins.camera.features uses a module listed above it, which is the healthy direction.
io.flutter.plugins.camera.features uses io.flutter.plugins.camera.features.sensororientation, so a change to io.flutter.plugins.camera.features.sensororientation can break io.flutter.plugins.camera.features, while a change to io.flutter.plugins.camera.features can't break io.flutter.plugins.camera.features.sensororientation.
Position
Below the diagonal: io.flutter.plugins.camera.features uses a module listed above it, which is the healthy direction.
io.flutter.plugins.camera.features uses io.flutter.plugins.camera.features.exposurepoint, so a change to io.flutter.plugins.camera.features.exposurepoint can break io.flutter.plugins.camera.features, while a change to io.flutter.plugins.camera.features can't break io.flutter.plugins.camera.features.exposurepoint.
Position
Below the diagonal: io.flutter.plugins.camera.features uses a module listed above it, which is the healthy direction.
io.flutter.plugins.camera.features uses io.flutter.plugins.camera.features.focuspoint, so a change to io.flutter.plugins.camera.features.focuspoint can break io.flutter.plugins.camera.features, while a change to io.flutter.plugins.camera.features can't break io.flutter.plugins.camera.features.focuspoint.
Position
Below the diagonal: io.flutter.plugins.camera.features uses a module listed above it, which is the healthy direction.
29→31 io.flutter.plugins.camera.features uses io.flutter.plugins.camerapart of a loop✕
Connections
7 pairs of types, where a type in io.flutter.plugins.camera.features uses a type in io.flutter.plugins.camera.
io.flutter.plugins.camera.features uses io.flutter.plugins.camera, so a change to io.flutter.plugins.camera can break io.flutter.plugins.camera.features, while a change to io.flutter.plugins.camera.features can't break io.flutter.plugins.camera.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios uses repository, so a change to repository can break packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios, while a change to packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios can't break repository.
Position
Below the diagonal: packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios uses a module listed above it, which is the healthy direction.
30→33 packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundationpart of a loop✕
Connections
1 pair of types, where a type in packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios uses a type in packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation, so a change to packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation can break packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios, while a change to packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios can't break packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
io.flutter.plugins.camera uses io.flutter.plugins.camera.features.autofocus, so a change to io.flutter.plugins.camera.features.autofocus can break io.flutter.plugins.camera, while a change to io.flutter.plugins.camera can't break io.flutter.plugins.camera.features.autofocus.
Position
Below the diagonal: io.flutter.plugins.camera uses a module listed above it, which is the healthy direction.
io.flutter.plugins.camera uses io.flutter.plugins.camera.features.exposurelock, so a change to io.flutter.plugins.camera.features.exposurelock can break io.flutter.plugins.camera, while a change to io.flutter.plugins.camera can't break io.flutter.plugins.camera.features.exposurelock.
Position
Below the diagonal: io.flutter.plugins.camera uses a module listed above it, which is the healthy direction.
io.flutter.plugins.camera uses io.flutter.plugins.camera.features.flash, so a change to io.flutter.plugins.camera.features.flash can break io.flutter.plugins.camera, while a change to io.flutter.plugins.camera can't break io.flutter.plugins.camera.features.flash.
Position
Below the diagonal: io.flutter.plugins.camera uses a module listed above it, which is the healthy direction.
io.flutter.plugins.camera uses io.flutter.plugins.camera.features.resolution, so a change to io.flutter.plugins.camera.features.resolution can break io.flutter.plugins.camera, while a change to io.flutter.plugins.camera can't break io.flutter.plugins.camera.features.resolution.
Position
Below the diagonal: io.flutter.plugins.camera uses a module listed above it, which is the healthy direction.
io.flutter.plugins.camera uses io.flutter.plugins.camera.features.sensororientation, so a change to io.flutter.plugins.camera.features.sensororientation can break io.flutter.plugins.camera, while a change to io.flutter.plugins.camera can't break io.flutter.plugins.camera.features.sensororientation.
Position
Below the diagonal: io.flutter.plugins.camera uses a module listed above it, which is the healthy direction.
io.flutter.plugins.camera uses io.flutter.plugins.camera.features, so a change to io.flutter.plugins.camera.features can break io.flutter.plugins.camera, while a change to io.flutter.plugins.camera can't break io.flutter.plugins.camera.features.
Position
Below the diagonal: io.flutter.plugins.camera uses a module listed above it, which is the healthy direction.
9 pairs of types, where a type in packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads uses a type in packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios.
packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads uses packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios, so a change to packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios can break packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads, while a change to packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads can't break packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios.
Position
Below the diagonal: packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads uses a module listed above it, which is the healthy direction.
32→33 packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundationpart of a loop✕
Connections
3 pairs of types, where a type in packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads uses a type in packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation, so a change to packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation can break packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads, while a change to packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads can't break packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation uses repository, so a change to repository can break packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation, while a change to packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation can't break repository.
Position
Below the diagonal: packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation uses a module listed above it, which is the healthy direction.
3 pairs of types, where a type in packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation uses a type in packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads.
packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation uses packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads, so a change to packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads can break packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation, while a change to packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation can't break packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads.
Position
Below the diagonal: packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation uses a module listed above it, which is the healthy direction.
packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos uses repository, so a change to repository can break packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos, while a change to packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos can't break repository.
Position
Below the diagonal: packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos uses a module listed above it, which is the healthy direction.
2 pairs of types, where a type in packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos uses a type in packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios.
packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos uses packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios, so a change to packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios can break packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos, while a change to packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos can't break packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios.
Position
Below the diagonal: packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos uses a type in packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation, so a change to packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation can break packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos, while a change to packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos can't break packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
Position
Below the diagonal: packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos uses a module listed above it, which is the healthy direction.
2 pairs of types, where a type in packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10 uses a type in repository.
packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10 uses repository, so a change to repository can break packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10, while a change to packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10 can't break repository.
Position
Below the diagonal: packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10 uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10 uses a type in packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads.
packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10 uses packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads, so a change to packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads can break packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10, while a change to packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10 can't break packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads.
Position
Below the diagonal: packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10 uses a module listed above it, which is the healthy direction.
14 pairs of types, where a type in packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10 uses a type in packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10 uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation, so a change to packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation can break packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10, while a change to packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10 can't break packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
Position
Below the diagonal: packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10 uses a module listed above it, which is the healthy direction.
packages~url_launcher~url_launcher_ios~ios~url_launcher_ios~url_launcher_ios uses repository, so a change to repository can break packages~url_launcher~url_launcher_ios~ios~url_launcher_ios~url_launcher_ios, while a change to packages~url_launcher~url_launcher_ios~ios~url_launcher_ios~url_launcher_ios can't break repository.
Position
Below the diagonal: packages~url_launcher~url_launcher_ios~ios~url_launcher_ios~url_launcher_ios uses a module listed above it, which is the healthy direction.
5 pairs of types, where a type in packages~url_launcher~url_launcher_ios~ios~url_launcher_ios~url_launcher_ios uses a type in packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios.
packages~url_launcher~url_launcher_ios~ios~url_launcher_ios~url_launcher_ios uses packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios, so a change to packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios can break packages~url_launcher~url_launcher_ios~ios~url_launcher_ios~url_launcher_ios, while a change to packages~url_launcher~url_launcher_ios~ios~url_launcher_ios~url_launcher_ios can't break packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios.
Position
Below the diagonal: packages~url_launcher~url_launcher_ios~ios~url_launcher_ios~url_launcher_ios uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in packages~url_launcher~url_launcher_ios~ios~url_launcher_ios~url_launcher_ios uses a type in packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
packages~url_launcher~url_launcher_ios~ios~url_launcher_ios~url_launcher_ios uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation, so a change to packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation can break packages~url_launcher~url_launcher_ios~ios~url_launcher_ios~url_launcher_ios, while a change to packages~url_launcher~url_launcher_ios~ios~url_launcher_ios~url_launcher_ios can't break packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
Position
Below the diagonal: packages~url_launcher~url_launcher_ios~ios~url_launcher_ios~url_launcher_ios uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview uses a type in packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios.
packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview uses packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios, so a change to packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios can break packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview, while a change to packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview can't break packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios.
Position
Below the diagonal: packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview uses a module listed above it, which is the healthy direction.
54 pairs of types, where a type in packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview uses a type in packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview uses packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads, so a change to packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads can break packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview, while a change to packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview can't break packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads.
Position
Below the diagonal: packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview uses a module listed above it, which is the healthy direction.
3 pairs of types, where a type in packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview uses a type in packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation, so a change to packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation can break packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview, while a change to packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview can't break packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
Position
Below the diagonal: packages~webview_flutter~webview_flutter_wkwebview~darwin~webview_flutter_wkwebview~webview_flutter_wkwebview uses a module listed above it, which is the healthy direction.
2 pairs of types, where a type in packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 uses a type in repository.
packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 uses repository, so a change to repository can break packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9, while a change to packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 can't break repository.
Position
Below the diagonal: packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 uses a type in packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads.
packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 uses packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads, so a change to packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads can break packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9, while a change to packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 can't break packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads.
Position
Below the diagonal: packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 uses a module listed above it, which is the healthy direction.
14 pairs of types, where a type in packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 uses a type in packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation, so a change to packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation can break packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9, while a change to packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 can't break packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
Position
Below the diagonal: packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 uses a module listed above it, which is the healthy direction.
205 pairs of types, where a type in packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 uses a type in packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 uses packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10, so a change to packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10 can break packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9, while a change to packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 can't break packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10.
Position
Below the diagonal: packages~google_maps_flutter~google_maps_flutter_ios_sdk9~ios~google_maps_flutter_ios_sdk9~google_maps_flutter_ios_sdk9 uses a module listed above it, which is the healthy direction.
2 pairs of types, where a type in packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios uses a type in repository.
packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios uses repository, so a change to repository can break packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios, while a change to packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios can't break repository.
Position
Below the diagonal: packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios uses a type in packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads.
packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios uses packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads, so a change to packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads can break packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios, while a change to packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios can't break packages~interactive_media_ads~ios~interactive_media_ads~interactive_media_ads.
Position
Below the diagonal: packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios uses a module listed above it, which is the healthy direction.
14 pairs of types, where a type in packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios uses a type in packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation, so a change to packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation can break packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios, while a change to packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios can't break packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
Position
Below the diagonal: packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios uses a module listed above it, which is the healthy direction.
205 pairs of types, where a type in packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios uses a type in packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios uses packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10, so a change to packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10 can break packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios, while a change to packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios can't break packages~google_maps_flutter~google_maps_flutter_ios_sdk10~ios~google_maps_flutter_ios_sdk10~google_maps_flutter_ios_sdk10.
Position
Below the diagonal: packages~google_maps_flutter~google_maps_flutter_ios_shared_code~ios~google_maps_flutter_ios~google_maps_flutter_ios uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios uses a type in packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios.
packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios uses packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios, so a change to packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios can break packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios, while a change to packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios can't break packages~quick_actions~quick_actions_ios~ios~quick_actions_ios~quick_actions_ios.
Position
Below the diagonal: packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios uses a module listed above it, which is the healthy direction.
packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios uses repository, so a change to repository can break packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios, while a change to packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios can't break repository.
Position
Below the diagonal: packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios uses a module listed above it, which is the healthy direction.
7 pairs of types, where a type in packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios uses a type in packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios.
packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios uses packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios, so a change to packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios can break packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios, while a change to packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios can't break packages~file_selector~file_selector_ios~ios~file_selector_ios~file_selector_ios.
Position
Below the diagonal: packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios uses a module listed above it, which is the healthy direction.
1 pair of types, where a type in packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios uses a type in packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios uses packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation, so a change to packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation can break packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios, while a change to packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios can't break packages~camera~camera_avfoundation~darwin~camera_avfoundation~camera_avfoundation.
Position
Below the diagonal: packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios uses a module listed above it, which is the healthy direction.
2 pairs of types, where a type in packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios uses a type in packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos.
packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios uses packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos, so a change to packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos can break packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios, while a change to packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios can't break packages~file_selector~file_selector_macos~macos~file_selector_macos~file_selector_macos.
Position
Below the diagonal: packages~google_sign_in~google_sign_in_ios~darwin~google_sign_in_ios~google_sign_in_ios uses a module listed above it, which is the healthy direction.
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A07:2025 — Authentication Failures
16
High / Critical
A05:2025 — Injection
5
High / Critical
A03:2025 — Software Supply Chain Failures
5
Medium
Roadmap
First, integrate SAST tooling into the CI pipeline to automatically block security regressions and resolve existing secret findings in the codebase. Second, extend structured logging across all runnable modules to ensure full observability and diagnosability in production. Third, enforce release hygiene by stamping version numbers in build manifests to maintain traceability. Finally, harden the web security posture by adding essential headers such as Content-Security-Policy and Strict-Transport-Security to the server configuration.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Add a SAST step to CI running what this repository's stack ships: the Dart analyzer's security lints plus `semgrep --config=auto` — so a security regression fails the build instead of landing.
Stamp a version in your build/package manifest (e.g. csproj <Version>, package.json, pyproject.toml, Cargo.toml, or a VERSION file) or tag releases with semver so builds and releases are traceable.
Every finding carries one of four grades. Three say how serious it is. The fourth says this
survey could not settle it — and it is a grade, not a gap.
Critical — 39
A definite problem that already costs you something and drags the score down: a
missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here
tends to cause failures elsewhere.
Serious — 3023
Likely wrong, but not failing yet. It degrades
the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to
carry for two years either.
Minor — 239
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 7
Something this survey could not settle
from the outside, and which could be critical or serious. Either a control was required and no
positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves
nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean
result. These are excluded from the score rather than awarded a pass, so the number on the cover neither
rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each
one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 67 of 71 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.
What we checked — 71 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 3282 of 3301 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: the Swift half could not be measured — the Swift suite in packages/pigeon/platform_tests/test_plugin/darwin/test_plugin produced no coverage export. Coverage is excluded from the score rather than counted as a near-zero. This is OUR limitation, not a defect in the repo. In the meantime, commit (or publish into the working tree) the lcov/Cobertura report your CI produces and the real number is read on the next scan. You can widen what we reach: optional: commit the lcov/Cobertura report your CI produces, and the real number is read on the next scan.
D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This repository declares 3 of its own test(s) unreliable. The built-in reliability runner does not support this repository's ecosystem (.dart, .java, .kt, .swift), so the suite was not re-run and no reliability score is given — these are the repository's own declarations, not our measurement.
D12 Dependency Hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 113 Maven/Gradle manifest(s) were read, stating a version for 206 dependency(ies) and leaving 0 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
D32 Data Compliance (PII/GDPR) — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `packages/camera/camera_avfoundation/darwin/camera_avfoundation/Sources/camera_avfoundation/CameraPermissionManager.swift`, `packages/cross_file/cross_file_darwin/darwin/cross_file_darwin/Sources/cross_file_darwin/ProxyAPIRegistrar.swift`, `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift`, `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift`, `packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/TileOverlayController.swift`, … (+8 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
AXB1 Runtime evidence locked — no reproducible boot — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Subject: 1 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates. The Runtime Evidence tier boots an app only via docker-compose, an Aspire AppHost, a Dockerfile, an npm dev script, a web service's own toolchain entry point (cargo, go, dotnet, Python, Spring Boot), or an Android app's own Gradle wrapper (run on an emulator); an Apple or Flutter app needs a host it lacks. None applied, so no live runtime a11y/egress/header evidence was collected. You can widen what we reach: add a docker-compose.yml (or an Aspire AppHost) that brings the app up with its dependencies. Watchdog then boots it in an isolated sandbox and gathers real runtime evidence — you change nothing in your pipeline (no CI step, no SDK).
IC1 Incompleteness & stubs — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 40 further occurrence(s) are not listed individually; the score already reflects all 80.
P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
X2 Cancellation propagation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python and Rust source only, and no C# was loaded, and no named async function in this repository's JavaScript/TypeScript, nor any Go, PHP or Dart function or Kotlin suspend function, makes a request that can be cancelled (fetch, axios, ky, ofetch; net/http, net.Dial; amphp; Dio; Ktor, OkHttp), so there is nothing to judge, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
LLM-set scores this run (4): D19, D21, D22, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score; each names its own sample and method on its card. They are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
186 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was ThemeData.== at 85. A further 17 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being ArgumentDecoders.curve at 45 — they are counted neither in the figure above nor in this dimension's score. 12 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: packages/rfw/lib/src/flutter/argument_decoders.dart (ArgumentDecoders.curve at 45), packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/AdEventProxyApi.kt (AdEventProxyApi.type at 28), packages/interactive_media_ads/ios/interactive_media_ads/Sources/interactive_media_ads/AdErrorProxyAPIDelegate.swift (AdErrorProxyAPIDelegate.code at 25), packages/interactive_media_ads/ios/interactive_media_ads/Sources/interactive_media_ads/AdEventProxyAPIDelegate.swift (AdEventProxyAPIDelegate.type at 25), packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/AdErrorProxyApi.kt (AdErrorProxyApi.errorCode at 24), and 7 more not listed here. They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
+ 176 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 3 bodies over 60 down to 60 or less in Cyclomatic Complexity — start with ThemeData.== (cyclomatic 85), _InputDecoratorState.build (cyclomatic 64), InputDecoration.== (cyclomatic 63). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 3 together lifts Cyclomatic Complexity from 6.2 to about 6.5/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.
Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 255 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 2 bodies over 120 down to 120 or less in Cognitive Complexity — start with _MergeableMaterialState.didUpdateWidget (cognitive 139), RenderTableViewport._paintCells (cognitive 133). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 2 together lifts Cognitive Complexity from 5.7 to about 5.8/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.
Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes8.8 / 10Strong✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
Resolve the 105 FileTooLong finding(s) in God Classes — start with messages.dart (5), google_maps_flutter_ios.dart (4), GoogleMapController.swift (3). — One of this dimension's main actionable groups (105 warning-level).
Resolve the 94 MethodTooLong finding(s) in God Classes — start with input_decorator.dart (5), gobject_generator.dart (5), text_field.dart (4). — One of this dimension's main actionable groups (94 warning-level).
Resolve the 78 TooManyMethods finding(s) in God Classes — start with google_maps_flutter_ios.dart (4), input_decorator.dart (3), time_picker.dart (3). — One of this dimension's main actionable groups (78 warning-level).
Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
1174 duplicated block group(s) detected. A further 165 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. 704 of the 1339 are in trees this repository does not ship — vendored, example/demo, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.
Members sharing a duplicated core (6 members, 50+ identical tokens) · ×54packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart:456
+ 279 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 54 Members sharing a duplicated core (6 members, 50+ identical tokens) finding(s) in Code Duplication — start with REDACTED (6), marker_icons.dart (5), place_advanced_marker.dart (5). — One of this dimension's main actionable groups (54 warning-level).
Resolve the 54 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with REDACTED (6), date_picker.dart (2), menu_anchor.dart (2). — One of this dimension's main actionable groups (54 warning-level).
Resolve the 40 Members sharing a duplicated core (4 members, 50+ identical tokens) finding(s) in Code Duplication — start with REDACTED (16), google_map_inspector_ios.dart (3), button.dart (3). — One of this dimension's main actionable groups (40 warning-level).
Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
162 production modules (Gradle+SwiftPM+pub), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; edges a convention plugin adds from buildSrc or build-logic are not visible there; 0 module(s) off the main sequence, with abstractness counted on 152 of the 162 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
Resolve the 189 Low cohesion finding(s) in Cohesion (LCOM4) — start with switch.dart (8), slider.dart (5), menu_anchor.dart (5). — One of this dimension's main actionable groups (189 warning-level).
Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D9 · Test Distribution9.9 / 10Exemplary✓ Tool-verified
What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.
Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 27 declared JVM dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the coordinates this repository's 113 Maven/Gradle manifest(s) declare with a version resolvable from the manifest itself — the same declaration-site closure this analysis reads for dependency currency. The JVM has no lockfile a checkout is guaranteed to carry, so this is deliberately NOT the transitive closure. A further 56 coordinate(s) are not published to Maven Central — another repository (Google's Maven hosts androidx), a SNAPSHOT, or a private artifact — so their licences are not readable from here and they are outside this verdict.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
Resolve the 14 Hotspot finding(s) in Churn × Complexity Hotspots — start with GoogleMapController.swift (3), swift_generator.dart, input_decorator.dart. — One of this dimension's main actionable groups (14 warning-level).
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D16 · Bus Factor9.3 / 10Exemplary✓ Tool-verified
What it measures: Whether knowledge is concentrated in too few people (the "bus factor").
Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.
70 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is packages/pigeon/platform_tests/shared_test_plugin_code/lib/native_interop_integration_tests.dart. Counted over 1109 of the 2047 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Off-boarding risk: anonymized user #1 · ×5
Further sole-owners (lower concentration)
✓ On the Gold path — maintain.
Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
1061 deducted task-comment markers across 617114 LoC (0.2/KLoC) → score 9.7. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
TodoComment repeated across 45 filespackages/cupertino_ui/lib/src/text_form_field_row.dart:53
TodoComment repeated across 110 filespackages/cupertino_ui/lib/src/text_form_field_row.dart:86
What to do
Resolve the 620 TodoComment finding(s) in Explicit Debt — start with google_maps_test.dart (64), camera_windows.dart (14), maps_controller.dart (13). — One of this dimension's main actionable groups (620 warning-level).
Resolve the 1 HackComment finding(s) in Explicit Debt — start with FpsRangeFeature.java. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 TodoComment repeated across 45 files finding(s) in Explicit Debt — start with text_form_field_row.dart. — One of this dimension's main actionable groups (1 warning-level).
Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.
The repository's root README is a comprehensive overview of the Flutter Packages project (the companion repo for the main flutter repo), with links to release and CI status, an issues/contributing section, and a detailed table of packages. The agent-artifacts/README documents its own directory (agent artifcats) without claiming anything about the repository, while .agents/skills/README is a self-contained skills README that references the root flutter_packages README. The architecture/design docs are present but not shown in this summary. All visible documents are clear and complete for their scope. A strong README set with detailed feature and usage documentation for each directory it describes. The go_router, go_router_builder, google_adsense, google_fonts, google_identity_services_web, interactive_media_ads, material_ui, pigeon, and platform packages all have thorough, well-organized descriptions of what they do, their features, and concrete examples (dependencies, pubspec.yaml, code excerpts, build_runner commands). The READMEs are consistent in scope: each one documents its own directory rather than the repository as a whole. There is no single missing document; every visible file is present and complete within its outline. The repository's README files are excellent documentation for the packages/plugin_platform_interface and packages/rfw directories — each is a focused README that explains what it contains and how to use its contents. The architecture/design docs (15 markdown files) provide detailed design rationale and structure for the broader system, which would be ideal for an enterprise project but fall below the scope of these READMEs. All four core documentation gaps are present in the root repository's top-level README rather than the directory-specific ones.
What to do
Improve Documentation Quality — currently 8.1/10. — The repository's root README is a comprehensive overview of the Flutter Packages project (the companion repo for the main flutter repo), with links to release and CI status, an issues/contributing section, and a detailed table of packages. The agent-artifacts/README documents its own directory (agent artifcats) without claiming anything about the repository, while .agents/skills/README is a self-contained skills README that references the root flutter_packages README. The architecture/design docs are present but not shown in this summary. All visible documents are clear and complete for their scope. A strong README set with detailed feature and usage documentation for each directory it describes. The go_router, go_router_builder, google_adsense, google_fonts, google_identity_services_web, interactive_media_ads, material_ui, pigeon, and platform packages all have thorough, well-organized descriptions of what they do, their features, and concrete examples (dependencies, pubspec.yaml, code excerpts, build_runner commands). The READMEs are consistent in scope: each one documents its own directory rather than the repository as a whole. There is no single missing document; every visible file is present and complete within its outline. The repository's README files are excellent documentation for the packages/plugin_platform_interface and packages/rfw directories — each is a focused README that explains what it contains and how to use its contents. The architecture/design docs (15 markdown files) provide detailed design rationale and structure for the broader system, which would be ideal for an enterprise project but fall below the scope of these READMEs. All four core documentation gaps are present in the root repository's top-level README rather than the directory-specific ones.
Detailed fixes: d19_recommendation.md.
Do you agree with this assessment?
D20 · ADR Quality0.0 / 10Critical✓ Tool-verified
What it measures: Whether architecture decisions are recorded well (context, decision, consequences).
Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.
What it measures: Whether names — types, methods, variables — are clear and consistent.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.
0 naming inconsistencies across 0 sampled symbols.
✓ On the Gold path — maintain.
Detailed fixes: d21_recommendation.md.
Do you agree with this assessment?
D22 · Internal API ConsistencyStronggated by 1 serious finding◐ Sampled · advisory
What it measures: Whether the internal API surface is consistent and coherent.
Method: Judged by language model at low temperature over a sample of the public API surface (IsPackable or .Contracts types). Sampled, advisory; confidence discounted by model uncertainty.
Duplicate method signatures with different parameter names/types that are effectively aliases. `FlutterPluginRegistry` and `FlutterPluginRegistrar` are often used interchangeably or one is a wrapper of the other in Flutter's iOS API, but exposing both as distinct public methods on the same type creates redundancy and confusion about which entry point to use.
What to do
Resolve the 1 Duplicate method signatures with different parameter names/types that… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d22_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: REDACTED scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
15 finding(s): 0 critical, 15 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
REDACTED
REDACTED
What to do
Resolve the 15 REDACTED finding(s) in Secrets (history) — start with REDACTED (4), REDACTED, REDACTED. — One of this dimension's main actionable groups (15 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
5 finding(s): 0 critical, 3 high, 1 medium, 1 low. semgrep hit a parse error in 5 file(s) — `packages/file_selector/file_selector_linux/linux/messages.g.h` (line 22), `packages/material_ui/test_apps/a11y_assessments/web/index.html` (line 25), `packages/two_dimensional_scrollables/example/web/index.html` (line 23), `packages/two_dimensional_scrollables/example/web/manifest.json`, `packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt` (line 2359, line 4215, line 4241, …) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 3 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
REDACTED
REDACTED
REDACTED
REDACTED
What to do
Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.
Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
165 of 1109 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is script/l10n/lib/language_subtag_registry.dart. Counted over 1109 of the 2047 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Resolve the 18 Orphaned knowledge finding(s) in Knowledge Freshness — start with language_subtag_registry.dart, text.dart, runtime.dart. — One of this dimension's main actionable groups (18 issue-level).
Resolve the 147 Orphaned file finding(s) in Knowledge Freshness — start with webview_platform.dart (2), google_accounts_oauth2.dart, colors.dart. — One of this dimension's main actionable groups (147 recommendation-level).
Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
Resolve the 5 Change coupling finding(s) in Change Coupling — start with StoreKit2Translators.swift (2), AdsRequestProxyApi.kt, sk2_product_wrapper.dart. — One of this dimension's main actionable groups (5 warning-level).
Resolve the 1 Change coupling clique finding(s) in Change Coupling — start with desktop_text_selection.dart. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 Change-coupling hub finding(s) in Change Coupling — start with InAppPurchasePlugin+StoreKit2.swift. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.
Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.
Resolve the 2 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 warning-level).
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Scored apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.
Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. SCORED, not informational.
What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.
Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 65 platform declaration(s) and 206 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Other · Architecture — Whether any singleton service captures a scoped/transient dependency — a silent lifetime/threading bug.
Method: Roslyn scan: DI registrations parsed from AddSingleton/Scoped/Transient; each singleton checked for captured shorter-lifetime dependencies. Exhaustive, deterministic.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
What to do
The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).
Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.
Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.
Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.
Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').
Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.
`HostIntegrationCoreApi` declares 166 abstract methods: `areAllNullableTypesEqual`, `asyncTaskQueueIsBackgroundThread`, `callFlutterCallbackEchoString`, `callFlutterCallbackNoop`, `callFlutterCallbackThrowError`, `callFlutterCallbackThrowErrorFromVoid`, `callFlutterEchoAllNullableTypes`, `callFlutterEchoAllNullableTypesWithoutRecursion`, `callFlutterEchoAllTypes`, `callFlutterEchoAnotherEnum`, `callFlutterEchoAnotherNullableEnum`, `callFlutterEchoBool`, `callFlutterEchoClassList`, `callFlutterEchoClassMap`, `callFlutterEchoDouble`, `callFlutterEchoEnum`, `callFlutterEchoEnumList`, `callFlutterEchoEnumMap`, `callFlutterEchoInt`, `callFlutterEchoIntMap`, `callFlutterEchoList`, `callFlutterEchoMap`, `callFlutterEchoNonNullClassList`, `callFlutterEchoNonNullClassMap`, `callFlutterEchoNonNullEnumList`, `callFlutterEchoNonNullEnumMap`, `callFlutterEchoNonNullIntMap`, `callFlutterEchoNonNullStringMap`, `callFlutterEchoNullableBool`, `callFlutterEchoNullableClassList`, `callFlutterEchoNullableClassMap`, `callFlutterEchoNullableDouble`, `callFlutterEchoNullableEnum`, `callFlutterEchoNullableEnumList`, `callFlutterEchoNullableEnumMap`, `callFlutterEchoNullableInt`, `callFlutterEchoNullableIntMap`, `callFlutterEchoNullableList`, `callFlutterEchoNullableMap`, `callFlutterEchoNullableNonNullClassList`, and 126 more. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java:3439
`CameraProperties` declares 20 abstract methods: `getAvailableNoiseReductionModes`, `getCameraName`, `getControlAutoExposureAvailableTargetFpsRanges`, `getControlAutoExposureCompensationRange`, `getControlAutoExposureCompensationStep`, `getControlAutoFocusAvailableModes`, `getControlMaxRegionsAutoExposure`, `getControlMaxRegionsAutoFocus`, `getDistortionCorrectionAvailableModes`, `getFlashInfoAvailable`, `getHardwareLevel`, `getLensFacing`, `getLensInfoMinimumFocusDistance`, `getScalerAvailableMaxDigitalZoom`, `getScalerMaxZoomRatio`, `getScalerMinZoomRatio`, `getSensorInfoActiveArraySize`, `getSensorInfoPixelArraySize`, `getSensorInfoPreCorrectionActiveArraySize`, `getSensorOrientation`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/CameraProperties.java:16
`CameraApi` declares 29 abstract methods: `create`, `dispose`, `getAvailableCameras`, `getExposureOffsetStepSize`, `getMaxExposureOffset`, `getMaxZoomLevel`, `getMinExposureOffset`, `getMinZoomLevel`, `initialize`, `lockCaptureOrientation`, `pausePreview`, `pauseVideoRecording`, `resumePreview`, `resumeVideoRecording`, `setDescriptionWhileRecording`, `setExposureMode`, `setExposureOffset`, `setExposurePoint`, `setFlashMode`, `setFocusMode`, `setFocusPoint`, `setJpegImageQuality`, `setZoomLevel`, `startImageStream`, `startVideoRecording`, `stopImageStream`, `stopVideoRecording`, `takePicture`, `unlockCaptureOrientation`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/Messages.java:1205
What to do
Split fat interfaces into focused role-interfaces so clients depend only on what they use.
Do you agree with this assessment?
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified
Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.
Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.
Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.
Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.
Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.
Other · Event Sourcing — Whether the recovery-replay fold is deterministic — state derived purely from each event's own fields, no clock/random/IO on the replay path.
Method: Roslyn syntax scan (event-sourcing gated): Apply/When folds checked for forbidden tokens (DateTime.Now, Guid.NewGuid, Random, IO), stripped of comments/strings. Deterministic, hard fact per fold.
Other · Event Sourcing — Whether domain events stay immutable (a `struct` with `let` fields) rather than carrying mutable state.
Method: Roslyn scan (event-sourcing gated): persisted events checked for public setters; immutability verified per property/field. Deterministic, hard fact.
Other · Code Health — Unreviewed-generation residue in this repository's Dart: methods whose whole body still throws UnimplementedError or a "not implemented" error, and placeholder text (lorem ipsum, changeme/replace_me…) left in strings of non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.
Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.
Other · Code Health — Unfinished work detected by code SHAPE, not keywords, in this repository's Dart: methods that only throw UnimplementedError or a "not implemented" exception, methods that take inputs and return a constant or do nothing, dead `if (false)` branches, and skeleton classes most of whose methods are holes.
Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, guards that return what the code already falls through to, tests an earlier guard already decided, comparisons against NaN, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.
`_unawaited` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — packages/google_fonts/lib/src/google_fonts_base.dart:329
`_defaultApplicationVersion` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — packages/material_ui/lib/src/about.dart:1214
`_defaultApplicationIcon` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — packages/material_ui/lib/src/about.dart:1219
A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something. (×37) — packages/camera/camera/example/integration_test/camera_test.dart:105, packages/camera/camera_android/example/integration_test/camera_test.dart:105, packages/cupertino_ui/example/test/magnifier/text_magnifier.0_test.dart:103, …
What to do
Finish or delete the unfinished stubs (functions that throw "not implemented", or whose body is empty or a bare constant) — they are dead surface that looks live.
Clear the softer debt: re-enable or delete tests marked `skip:`, decide whether each empty method or UnsupportedError is deliberate (and say so in a comment), and replace `// ignore_for_file: type=lint` with targeted, justified ignores.
Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
What to do
Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Add a README to the 129 of 129 project(s) that lack one — worth up to 2 pts.
Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.
Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.
No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).
Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.
packages/xdg_directories/README.md links to `freedesktop.org`, but `packages/xdg_directories/freedesktop.org` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — packages/xdg_directories/README.md:7
packages/camera/camera_android_camerax/README.md documents the environment variable `TYPE_CAMERA`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — packages/camera/camera_android_camerax/README.md:75
packages/in_app_purchase/in_app_purchase_platform_interface/README.md links to `lib/in_app_purchase_platform_addition.dart`, but `packages/in_app_purchase/in_app_purchase_platform_interface/lib/in_app_purchase_platform_addition.dart` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — packages/in_app_purchase/in_app_purchase_platform_interface/README.md:33
packages/pigeon/platform_tests/alternate_language_test_plugin/README.md links to `../tool/test.dart`, but `packages/pigeon/platform_tests/tool/test.dart` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — packages/pigeon/platform_tests/alternate_language_test_plugin/README.md:6
packages/camera/camera_android_camerax/.agents/skills/README.md names `third_party/README.md`, but no file or folder `third_party/README.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — packages/camera/camera_android_camerax/.agents/skills/README.md:12
packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/README.md links to `../in_app_purchase/README.md`, but `packages/in_app_purchase/in_app_purchase_android/lib/src/in_app_purchase/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/README.md:6
packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_wrappers/README.md links to `../in_app_purchase/README.md`, but `packages/in_app_purchase/in_app_purchase_storekit/lib/src/in_app_purchase/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_wrappers/README.md:5
What to do
Reconcile the README with reality: packages/xdg_directories/README.md links to `freedesktop.org`, but `packages/xdg_directories/freedesktop.org` does not exist; packages/camera/camera_android_camerax/README.md documents the environment variable `TYPE_CAMERA`, but no code, script or configuration file names it; packages/in_app_purchase/in_app_purchase_platform_interface/README.md links to `lib/in_app_purchase_platform_addition.dart`, but `packages/in_app_purchase/in_app_purchase_platform_interface/lib/in_app_purchase_platform_addition.dart` does not exist; packages/pigeon/platform_tests/alternate_language_test_plugin/README.md links to `../tool/test.dart`, but `packages/pigeon/platform_tests/tool/test.dart` does not exist; packages/camera/camera_android_camerax/.agents/skills/README.md names `third_party/README.md`, but no file or folder `third_party/README.md` exists.
Readiness · Readiness — Whether an automated pipeline builds and tests every change.
Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.
Do you agree with this assessment?
P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged
Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.
Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.
Do you agree with this assessment?
P2 · Observability4.2 / 10Weak✓ Tool-verified
Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.
Only 11/201 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`, `packages/animations/example`, `packages/animations/example/ios`, `packages/camera/camera/example`, `packages/camera/camera/example/ios` and 185 more.
What to do
Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
Consider OpenTelemetry tracing/metrics (the opentelemetry package) and a health-check endpoint (a /health route on your shelf router) for operability.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
No static application security testing detected. For this repository's stack, add the Dart analyzer's security lints plus `semgrep --config=auto` as a CI step. What was searched, so you can tell an absence from a miss: the 23717 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
Add a SAST step to CI running what this repository's stack ships: the Dart analyzer's security lints plus `semgrep --config=auto` — so a security regression fails the build instead of landing.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.
Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.
What to do
Stamp a version in your build/package manifest (e.g. csproj <Version>, package.json, pyproject.toml, Cargo.toml, or a VERSION file) or tag releases with semver so builds and releases are traceable.
Readiness · Performance — Whether the code protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.
Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI; off .NET, the same ladder over Go testing.B, Rust criterion/#[bench]/divan, JMH/kotlinx-benchmark, pytest-benchmark/asv/pyperf, tinybench/mitata/vitest bench/benchmark.js and Swift package-benchmark — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.
Readiness · Performance — Whether the code is written to minimise allocations so it doesn't pressure its host's memory manager — buffer/slice views over copies, object pooling, stack or value-type allocation, and buffer writers. Reward-only: credited where present, never penalised where a simpler style is fine.
Method: Production-source scan: density (per 1k LoC) of allocation-aware APIs — in .NET Span/Memory, ArrayPool/ObjectPool, stackalloc, ValueTask, value-type structs, IBufferWriter, string.Create, SkipLocalsInit; off .NET, with comments and strings blanked, Go's sync.Pool, preallocated slices/maps, Grow, strconv.Append* and buf[:0] reuse; the JVM's NIO buffer views, MemorySegment, primitive collections, pools and literal presizes (plus Kotlin primitive arrays and value classes, Scala AnyVal and @specialized); Swift's reserveCapacity, ContiguousArray, withUnsafe* access and ~Copyable. Activated off .NET on the same floor (400 lines, and benchmarks or 8 uses); Rust and garbage-collected scripting languages are not applicable. Reward-only. Deterministic, syntax/text detection.
What to do
Raise allocation-aware density on the hot paths — currently 188 use(s) across 550,796 production line(s) (~0.3/1k). More of the idioms below on the allocation-heavy paths climbs this toward 10.
Dart: on hot paths, hold numbers in dart:typed_data lists (Int32List, Float64List …) instead of boxed List<int>/List<double>, read through views (sublistView, buffer.asInt32List, asByteData) instead of copying, make lists that never grow growable: false, compute in the SIMD types (Float32x4List …), and build bytes with BytesBuilder(copy: false).
Java: on hot paths, work through buffer views (ByteBuffer/LongBuffer slices, MemorySegment) instead of copies, avoid boxing with primitive collections (fastutil, Eclipse Collections, HPPC, Trove), presize collections and StringBuilders, and pool expensive buffers (Netty's pooled allocator, commons-pool).
Kotlin: on hot paths, use primitive arrays (IntArray, LongArray …) and @JvmInline value classes instead of boxed values, primitive collections (androidx.collection, fastutil) instead of boxed ones, and presize collections and StringBuilders.
Swift: on hot paths, reserveCapacity before appending, use ContiguousArray for class-element arrays, work in place with withUnsafeBufferPointer/withUnsafeTemporaryAllocation, and make large values ~Copyable with borrowing/consuming parameters.
Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.
Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from the language model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.
`parse` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — packages/metrics_center/lib/src/google_benchmark.dart:38
`launch` is async and calls runSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — packages/web_benchmarks/lib/src/browser.dart:76
`_runCognitiveComplexityForPackage` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/analyze_command.dart:371
`gitDir` is async and calls resolveSymbolicLinksSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/common/package_command.dart:246
`runXcodeBuild` is async and calls deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/common/xcode.dart:32
`initializeRun` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/coverage_check_command.dart:36
`_runCoverageAndParse` is async and calls deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/coverage_check_command.dart:106
`_replaceWithLegacy` is async and calls listSync, deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/create_all_packages_app_command.dart:138
`_updateAppGradle` is async and calls listSync, readAsStringSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/create_all_packages_app_command.dart:217
`_genPubspecWithAllPlugins` is async and calls writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/create_all_packages_app_command.dart:286
`_packageWillBePublished` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/federation_safety_check_command.dart:186
`_testsContainDartIntegrationTestRunner` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/firebase_test_lab_command.dart:333
`_getFilteredFilePaths` is async and calls readAsLinesSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/format_command.dart:364
`_downloadJavaFormatterIfNecessary` is async and calls writeAsBytesSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/format_command.dart:431
`_downloadKotlinFormatterIfNecessary` is async and calls writeAsBytesSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/format_command.dart:443
`_checkLicenseFiles` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/license_check_command.dart:286
`_getSubmoduleDirectories` is async and calls readAsLinesSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/license_check_command.dart:344
`_addDependencyOverridesIfNecessary` is async and calls readAsStringSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/make_deps_path_based_command.dart:152
`_testAndroid` is async and calls readAsLinesSync, listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/native_test_command.dart:237
`_runGoogleTestTests` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/native_test_command.dart:596
`getPackagesToProcess` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/publish_command.dart:187
`runForPackage` is async and calls readAsStringSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. (×2) — script/tool/lib/src/remove_dev_dependencies_command.dart:34, script/tool/lib/src/update_min_sdk_command.dart:61
`_createTestDirectory` is async and calls listSync, createSync, copySync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/test_dart_fixes_command.dart:75
`_runForPubDependency` is async and calls readAsStringSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/update_dependency_command.dart:200
`_runForAndroidDependencyOnExamples` is async and calls readAsStringSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/update_dependency_command.dart:270
`_runForCompileSdkVersion` is async and calls readAsStringSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/update_dependency_command.dart:367
`runForPackage` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/update_excerpts_command.dart:45
`_createPendingBatchChangelog` is async and calls writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/update_release_info_command.dart:308
`_findAllPublishedPackages` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/validate_command.dart:305
`validatePubspec` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/validators/pubspec_validator.dart:86
`_validateChangelogVersion` is async and calls readAsLinesSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs. — script/tool/lib/src/validators/version_and_changelog_validator.dart:310
What to do
Dart: await the async dart:io API (readAsString, writeAsString, Process.run, Future.delayed) instead of the *Sync variant or sleep(), or move heavy synchronous work to another isolate with Isolate.run.
Other · Security — Read from this repository's Dart source: cryptographic hygiene (weak hash or cipher, key material fixed in the source) and outbound TLS certificate validation — facts about code that hold whether or not it serves anything itself. The TLS protocol version is not read: `dart:io` leaves the protocol floor to the platform's TLS library and has no switch that admits an obsolete version. This repository serves HTTP itself (packages/web_benchmarks/pubspec.yaml:19 — depends on `shelf`), so its Dart source was also read for the server controls: TLS served or HSTS set, security response headers, cookie flags and inbound validation — each credited where its Dart spelling appears in production source, not proven on every route. Every server it binds listens on the loopback interface only, so its traffic never leaves the device and HTTPS enforcement is N/A, as it is for a native app's loopback redirect listener (RFC 8252 §7.3).
Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.
Set: Cross-Origin-Embedder-Policy, Cross-Origin-Opener-Policy. Missing: Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options — the four headers that carry the points of this card's security-headers term (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options), 0.5 each.(−2.0 on this card.) The server: packages/web_benchmarks/pubspec.yaml:19 — depends on `shelf`.
No handler of this repository's Dart server answers 400, 413 or 422 (`Response.badRequest`, `HttpStatus.badRequest`, `statusCode = 400`) and no validation package (luthor, acanthis, ez_validator, json_schema, …) is imported — nothing shows inbound requests being checked, and refused, before a handler acts on them. A check that answers its failure with 200 and an error body is not seen. (−2.0 on this card.) The server: packages/web_benchmarks/pubspec.yaml:19 — depends on `shelf`.
What to do
Add Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options beside the headers the Dart server already sets.
Validate what the server reads from a request — path, query, headers, body size and shape — and answer what fails with 400 (413 for an oversized body) before a handler acts on it, so a client and a proxy can tell a refusal from a success.
Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.
Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.
`forEach` takes a `void` callback and never awaits what it returns, so the Future each `async` call returns is dropped: nothing can await it, the code after this loop runs before any of the awaited work has finished (a function that `await`s around this loop still returns early, and a resource it closes next is closed under the work), and an error is never handled — it surfaces as an uncaught asynchronous error, which terminates a command-line program and reaches only the zone's error handler in Flutter. Iterate with `for (final item in items) { await … }` when the work must run in order, or `await Future.wait(items.map((item) async { … }))` when it may run concurrently, so the enclosing function finishes only when the work does and its failures reach the caller. Where firing and forgetting is genuinely intended, make the callback's whole body a `try { … } catch (e) { … }` that handles the failure, so it cannot escape. — packages/google_fonts/generator/generator.dart:287
Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.
Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.
Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.
Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.
Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X15 · Unvalidated length from an untrusted reader10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.
Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.
Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X17 · Uncapped recursion over a caller-supplied document2.7 / 10Weak✓ Tool-verified
Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.
Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.
`mergePigeonMaps` is public and takes `Map<String, Object> base` from its caller, and it calls itself at line 478 (`mergePigeonMaps`) with a piece of `base` — and nowhere in `mergePigeonMaps` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. `jsonDecode` sets no nesting limit: 2 MB of brackets parse to a million levels, while a walk like this one throws `StackOverflowError` from about 20,000 levels — 40,000 bytes (Dart 3.13 VM; on the web the limit is the browser's stack). That is an `Error`, not an `Exception`: an `on Exception catch` around the call does not stop it, so the request, the frame or the isolate fails with it. Thread a depth argument through `mergePigeonMaps` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — packages/pigeon/lib/src/generator_tools.dart:478
`deepClone` is public and takes `Object ? template` from its caller, and it calls itself at line 29 (`deepClone`) with a piece of `template` (and at line 31) — and nowhere in `deepClone` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. `jsonDecode` sets no nesting limit: 2 MB of brackets parse to a million levels, while a walk like this one throws `StackOverflowError` from about 20,000 levels — 40,000 bytes (Dart 3.13 VM; on the web the limit is the browser's stack). That is an `Error`, not an `Exception`: an `on Exception catch` around the call does not stop it, so the request, the frame or the isolate fails with it. Thread a depth argument through `deepClone` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — packages/rfw/lib/src/flutter/content.dart:29
What to do
Each finding names the externally-callable member that accepts the document and the self-call that descends, and states that no depth parameter or counter exists anywhere in the walk. Confirm from the two, then thread a depth argument through the walk and reject documents past a fixed maximum, or rewrite it with an explicit stack.
Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.
Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.
`MethodChannelGoogleMapsFlutter` carries a disposal duty — it declares its own release — and it creates `_mapEventStreamController` itself (line 97, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_mapEventStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_mapEventStreamController.close();` in `dispose()` before `super.dispose()`. — packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:97
`_PlayerInstance` carries a disposal duty — it declares its own release — and it creates `_eventStreamController` itself (line 334, `StreamController`), which makes that instance its own. Nothing in the class releases it — no `_eventStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_eventStreamController.close();` in `dispose()` before `super.dispose()`. — packages/video_player/video_player_android/lib/src/android_video_player.dart:334
What to do
Each finding names the value and the span that decides who owns it — the `new` that created it, or the constructor parameter that handed it over. Confirm ownership from that span, then make the disposal match it: release what this type created, leave what it was injected with to whoever created THAT, and drop a finalizer whose type holds nothing unmanaged to release.
Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.
Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `NullPointerException` (Java, Kotlin, Scala), `ArgumentError.notNull` (Dart) or `ArgumentNullException` (F#'s `nullArg`) tells the caller a parameter was null when it provably was not.
Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements controlled by an `if`, whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`). Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.
Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back.
Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.
Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X24 · Document value interpolated into markup unescaped10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.
Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.
Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.
Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether an enhanced `for` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is iterating invalidates the fail-fast iterator it is holding, so the next `next()` throws `ConcurrentModificationException` and the remaining elements are never seen. Whether a `for … in` loop leaves the `List`, `Map` or `Set` it is walking alone — Dart's collection iterators check that the collection has not changed since the loop began, so a body that adds to or removes from the very collection the loop is walking (or the map whose `keys`, `values` or `entries` it walks) makes the next step throw `ConcurrentModificationError` and the remaining elements are never seen. Whether a `for (x in c)` or `c.forEach { … }` leaves the collection it is walking alone — a `mutableListOf`/`ArrayList`, `mutableMapOf`/`HashMap` or `mutableSetOf`/`HashSet` is a `java.util` collection on the JVM and is walked by its own fail-fast iterator, so a body that adds to or removes from the very collection the loop is walking makes the next step throw `ConcurrentModificationException` and the remaining elements are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard5.4 / 10Adequate✓ Tool-verified
Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.
Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.
This condition tests `relativeComponents` for emptiness and then indexes it on a branch that test does not reach. `relativeComponents[0]` is evaluated whenever the guarded half is false — which includes the case the guard exists to anticipate, `relativeComponents` being empty — so an empty `relativeComponents` indexes position 0 of nothing and throws. This same condition already shows the intended bracketing at line 77: `relativeComponents[0].startsWith(' ')` sits INSIDE the guard. Either the guard is load-bearing, in which case this access escapes it and crashes, or `relativeComponents` cannot be empty here, in which case the guard beside it is dead code — the condition is wrong under both readings. Move the parenthesis so the emptiness test brackets every access to `relativeComponents`. — script/tool/lib/src/federation_safety_check_command.dart:76
What to do
Each finding names the index access that escapes the guard and the line of the correctly bracketed access beside it. Compare the two: they differ only in where one parenthesis sits. Move it so the emptiness test brackets every access to that symbol — and if the value provably cannot be empty at this point, delete the test rather than leave a condition that guards one access and not its neighbour.
Do you agree with this assessment?
X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.
Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
`catch (exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — packages/cross_file/cross_file_web/lib/src/web_scoped_storage_cross_file.dart:118
`catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×4) — packages/google_fonts/lib/src/file_io_desktop_and_mobile.dart:45, packages/image_picker/image_picker_for_web/lib/src/image_resizer.dart:36, packages/in_app_purchase/in_app_purchase_storekit/lib/src/in_app_purchase_storekit_platform.dart:472, …
`catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java:127
`catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — packages/local_auth/local_auth_android/android/src/main/kotlin/io/flutter/plugins/localauth/LocalAuthPlugin.kt:76
`catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×6) — packages/pigeon/lib/src/pigeon_lib_internal.dart:2760, packages/pigeon/lib/src/pigeon_lib_internal.dart:2840, packages/pigeon/lib/src/pigeon_lib.dart:1052, …
`catch (ex)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — packages/pigeon/lib/src/generator_tools.dart:818
An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×2) — packages/pigeon/tool/shared/generation.dart:85, packages/pigeon/tool/shared/generation.dart:144
What to do
Swallowed exception (caught, then discarded)
Do you agree with this assessment?
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.
Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether Dart's sound null safety is on and is not undermined by null assertions — a package whose `environment: sdk:` lower bound is 2.12 or above is null safe, so `String` cannot hold null and `String?` must be checked before use, and each postfix `!` is a run-time `Null check operator used on a null value` the author has told the analyzer cannot happen.
Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.
Do you agree with this assessment?
Reference — by lens
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Unscored — 3 check(s) recorded observations but carry no score
These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.
D11 Test Reliability — 3 observation(s) recorded · This repository declares 3 of its own test(s) unreliable. The built-in reliability runner does not support this repository's ecosystem (.dart, .java, .kt, .swift), so the suite was not re-run and no reliability score is given — these are the repository's own declarations, not our measurement.
X10 Duplicated predicate — 25 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X7 Silent fallback defaults — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 2 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 45 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC1 Text alternatives — Frontend below the scale floor (12 DOM element(s) < 25) — too little surface to assess accessibility.
AC2 Forms & labels — Frontend below the scale floor (12 DOM element(s) < 25) — too little surface to assess accessibility.
AC3 Page structure — Frontend below the scale floor (12 DOM element(s) < 25) — too little surface to assess accessibility.
AC4 Keyboard semantics — Frontend below the scale floor (12 DOM element(s) < 25) — too little surface to assess accessibility.
AC5 ARIA correctness — Frontend below the scale floor (12 DOM element(s) < 25) — too little surface to assess accessibility.
AC6 Visual & motion safety — Frontend below the scale floor (12 DOM element(s) < 25) — too little surface to assess accessibility.
AC7 A11y enforcement — Frontend below the scale floor (12 DOM element(s) < 25) — too little surface to assess accessibility.
AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this Java code is a Spring, JSR-330 or CDI singleton bean. No class in this Kotlin code is a Spring, JSR-330 or CDI singleton bean. No Swift request handler (a Vapor, Hummingbird, Kitura, Swifter or Perfect route handler, as a method or a registered closure) is declared, so no state is shared between request threads. Dart isolates share no mutable memory, so no two requests write one object at the same instant. TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AXB1 Runtime evidence locked — no reproducible boot — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Drift table, an Isar, ObjectBox, Floor or Hive entity, or a Serverpod table model — and no database or data-store client (sqflite, Drift, Isar, Hive, Realm, Firestore, Supabase, postgres, …) in the source either, so this repository keeps no data at rest for these controls to protect.
C2 Access Controls — No access-control surface detected in the analyzed source — this repository stands up no server another machine can reach (no HttpServer or shelf server bound beyond loopback, no dart_frog route, no Serverpod endpoint, no Conduit, Alfred or Angel application) and keeps no data in a hosted backend. Access control is therefore N/A here — a Flutter app or pub package is authorized by the server it calls, not by itself; hiding a screen authorizes nothing. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Drift table, an ObjectBox/Floor @Entity, an Isar @collection, a Hive @HiveType or a Serverpod table model — and no database or data-store client (sqflite, Firestore, Supabase, postgres, …) imported either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a hosted backend configured outside this repository, for instance), the trail belongs to wherever that data is stored.
C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Drift table, an ObjectBox/Floor @Entity, an Isar @collection, a Hive @HiveType or a Serverpod table model — and no database or data-store client (sqflite, Firestore, Supabase, postgres, …) imported either, so this repository keeps no personal data whose lifetime a retention limit would bound.
C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Drift table, an ObjectBox/Floor @Entity, an Isar @collection, a Hive @HiveType or a Serverpod table model — and no database or data-store client (sqflite, Firestore, Supabase, postgres, …) imported either, so this repository keeps no personal data for a data subject to erase, export or consent over.
D10 Test Quality — ~653148 lines of test source are present (.dart, .java, .kt, .swift) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
D12 Dependency Hygiene — Not scored — 113 Maven/Gradle manifest(s) were read, stating a version for 206 dependency(ies) and leaving 0 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D24 Comment Value — No inline comments to assess — comment value is not applicable here.
D25 ADR Conformance — no ADRs to check
D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.dart), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
D32 Data Compliance (PII/GDPR) — 13 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
D8 Code Coverage — Coverage not measured — Swift suite
DM1 Domain Modelling — applicable but not scored (3 signals for this style, 3 needed — the count is met but a required primary signal is absent): 12 strongly-typed id(s); 191 value object(s); 3 domain event(s); its domain events are published by services or handlers — no domain entity raises one; no aggregate is declared and no domain structure surrounds the state-guarding types: not claimed as DDD
ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and this analysis resolves a call's owner only where the receiver's type is written down in the source. Reported as guidance rather than measured
ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, which this analysis does not build from source alone for this language. Reported as guidance rather than measured
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the Dart, JVM, Swift source, so there is no service whose uptime a failing dependency could take down
P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `flutter test --coverage` (or `dart test --coverage=coverage` then `dart run coverage:format_coverage --lcov`)) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Dart was read, and it logs through none: package:logging, package:logger, talker and dart:developer take one finished message and no template arguments or fields (as log4net does in C#), so an interpolated message there loses nothing the API could have kept. Sentry's structured logs (`Sentry.logger`) would be judged.
X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
Orphaned knowledge script/l10n/lib/language_subtag_registry.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/rfw/lib/src/dart/text.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/rfw/lib/src/flutter/runtime.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/material_ui/lib/src/floating_action_button_location.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/material_ui/lib/src/material_localizations.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/rfw/lib/src/dart/model.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/webview_flutter/webview_flutter/lib/src/legacy/webview.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/web_benchmarks/lib/src/recorder.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/rfw/lib/src/dart/binary.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/material_ui/lib/src/app_bar_theme.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/camera/camera_web/lib/src/camera_web.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/material_ui/lib/src/list_tile_theme.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/cupertino_ui/lib/src/refresh.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/google_identity_services_web/lib/src/js_interop/google_accounts_id.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/vector_graphics_compiler/lib/src/geometry/path.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/material_ui/lib/src/mergeable_material.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/cupertino_ui/lib/src/global_cupertino_localizations.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Orphaned knowledge packages/cupertino_ui/lib/src/localizations.dart:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
D11 · Test Reliability· Test declared unreliable · ×3
Test declared unreliable: openImageFile packages/file_selector/file_selector_android/example/android/app/src/androidTest/java/dev/flutter/packages/file_selector_android_example/FileSelectorAndroidTest.java:56— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "Flaky; see https://github.com/flutter/flutter/issues/193234". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: openImageFiles packages/file_selector/file_selector_android/example/android/app/src/androidTest/java/dev/flutter/packages/file_selector_android_example/FileSelectorAndroidTest.java:98— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "Flaky; see https://github.com/flutter/flutter/issues/193234". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: audioOnlyHLSControls packages/video_player/video_player_avfoundation/darwin/RunnerTests/VideoPlayerTests.swift:265— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "Flaky". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
TodoComment packages/camera/camera/lib/src/camera_image.dart:8— // TODO(stuartmorgan): Remove all of these classes in a breaking change, and — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_android_camerax/example/lib/camera_image.dart:8— // TODO(stuartmorgan): Remove all of these classes in a breaking change, and — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera/lib/src/camera_controller.dart:19— // TODO(stuartmorgan): Fix this naming the next time there's a breaking change — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_android_camerax/example/lib/camera_controller.dart:19— // TODO(stuartmorgan): Fix this naming the next time there's a breaking change — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera/lib/src/camera_controller.dart:500— // TODO(bmparr): Add settings for resolution and fps. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_android_camerax/example/lib/camera_controller.dart:423— // TODO(bmparr): Add settings for resolution and fps. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/Camera.java:282— // TODO(camsim99): Revert changes that allow legacy code to be used when recordingProfile — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:141— // TODO(camsim99): Suppression is currently safe because legacy code is used as a fallback for — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_android_camerax/android/src/test/java/io/flutter/plugins/camerax/PreviewTest.java:306— // TODO(bparrishMines): Replace with inline calls to onSurfaceCleanup once available on stable; — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_avfoundation/darwin/camera_avfoundation/Sources/camera_avfoundation/CameraPlugin.swift:38— // TODO(RobertOdrowaz) Implement better error handling and remove non-null assertion — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart:565— // TODO(stuartmorgan): Consider throwing an UnsupportedError, instead of — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart:584— // TODO(stuartmorgan): Consider throwing an UnsupportedError, instead of — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart:140— // TODO(srawlins): This should return a value of the future's type. This — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_platform_interface/lib/src/platform_interface/camera_platform.dart:184— // TODO(bmparr): Add options to control streaming settings (e.g., — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_platform_interface/lib/src/platform_interface/camera_platform.dart:330— // TODO(bmparr): This is only supported on iOS. See — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_platform_interface/lib/src/types/camera_exception.dart:11— // TODO(bparrishMines): Document possible error codes. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_web/lib/src/camera_web.dart:312— // TODO(bselwe): Add support for exposure mode and point (https://github.com/flutter/flutter/issues/86857).
TodoComment packages/camera/camera_web/lib/src/camera_web.dart:315— // TODO(bselwe): Add support for focus mode and point (https://github.com/flutter/flutter/issues/86858).
TodoComment packages/camera/camera_web/lib/src/types/camera_options.dart:101— // TODO(dit): package:web has a class for this. Use it instead of jsify and toJson. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_web/lib/src/types/camera_options.dart:154— // TODO(dit): package:web has a class for this. Use it instead of toJson. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_web/lib/src/types/camera_options.dart:182— // TODO(dit): package:web has a class for this. Use it instead of toJson. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_web/lib/src/types/camera_options.dart:204— // TODO(dit): package:web has a class for this. Use it instead of toJson. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment packages/camera/camera_web/lib/src/types/camera_options.dart:231— // TODO(dit): package:web has a class for this. Use it instead of toJson. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
Low cohesion: _SwitchPainter (LCOM4 32) packages/material_ui/lib/src/switch.dart:1122— _SwitchPainter's methods fall into 32 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 32 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: MethodChannelCamera (LCOM4 30) packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart:19— MethodChannelCamera's methods fall into 30 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 30 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: GlobalMaterialLocalizations (LCOM4 27) packages/material_ui/lib/src/global_material_localizations.dart:21— GlobalMaterialLocalizations's methods fall into 27 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 27 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _RenderRangeSlider (LCOM4 26) packages/material_ui/lib/src/range_slider.dart:1098— _RenderRangeSlider's methods fall into 26 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 26 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _SwitchPainter (LCOM4 23) packages/cupertino_ui/lib/src/switch.dart:860— _SwitchPainter's methods fall into 23 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 23 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _RenderDecoration (LCOM4 22) packages/material_ui/lib/src/input_decorator.dart:728— _RenderDecoration's methods fall into 22 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 22 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: CameraWindows (LCOM4 21) packages/camera/camera_windows/lib/camera_windows.dart:15— CameraWindows's methods fall into 21 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 21 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: PlatformWebViewController (LCOM4 21) packages/webview_flutter/webview_flutter_platform_interface/lib/src/platform_webview_controller.dart:13— PlatformWebViewController's methods fall into 21 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 21 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: WebWebViewPlatformController (LCOM4 21) packages/webview_flutter/webview_flutter_web/lib/src/webview_flutter_web_legacy.dart:55— WebWebViewPlatformController's methods fall into 21 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 21 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _TimePickerDefaultsM3 (LCOM4 20) packages/material_ui/lib/src/time_picker.dart:3693— _TimePickerDefaultsM3's methods fall into 20 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 20 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ButtonTemplateM3 (LCOM4 19) packages/material_ui/tool/gen_defaults/templates/button_template.dart:16— ButtonTemplateM3's methods fall into 19 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 19 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _RenderListTile (LCOM4 19) packages/material_ui/lib/src/list_tile.dart:1323— _RenderListTile's methods fall into 19 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 19 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _TimePickerDefaultsM2 (LCOM4 18) packages/material_ui/lib/src/time_picker.dart:3452— _TimePickerDefaultsM2's methods fall into 18 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 18 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _SelectToggleButtonRenderObject (LCOM4 18) packages/material_ui/lib/src/toggle_buttons.dart:1086— _SelectToggleButtonRenderObject's methods fall into 18 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 18 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ResolvingVisitor (LCOM4 16) packages/vector_graphics_compiler/lib/src/svg/resolver.dart:17— ResolvingVisitor's methods fall into 16 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 16 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _RenderSegmentedButton (LCOM4 15) packages/material_ui/lib/src/segmented_button.dart:787— _RenderSegmentedButton's methods fall into 15 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 15 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _RenderSlider (LCOM4 15) packages/material_ui/lib/src/slider.dart:1198— _RenderSlider's methods fall into 15 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 15 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _SwitchConfigCupertino (LCOM4 15) packages/material_ui/lib/src/switch.dart:1956— _SwitchConfigCupertino's methods fall into 15 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 15 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _RenderSegmentedControl (LCOM4 14) packages/cupertino_ui/lib/src/segmented_control.dart:601— _RenderSegmentedControl's methods fall into 14 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 14 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _TextFieldState (LCOM4 14) packages/material_ui/lib/src/text_field.dart:1184— _TextFieldState's methods fall into 14 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 14 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ClippingOptimizer (LCOM4 14) packages/vector_graphics_compiler/lib/src/svg/clipping_optimizer.dart:21— ClippingOptimizer's methods fall into 14 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 14 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: MaskingOptimizer (LCOM4 14) packages/vector_graphics_compiler/lib/src/svg/masking_optimizer.dart:121— MaskingOptimizer's methods fall into 14 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 14 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _RenderBaselineAlignedStack (LCOM4 13) packages/cupertino_ui/lib/src/text_field.dart:1840— _RenderBaselineAlignedStack's methods fall into 13 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 13 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: RenderTableViewport (LCOM4 13) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:446— RenderTableViewport's methods fall into 13 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 13 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: _CupertinoMenuItemInteractionHandlerState (LCOM4 12) packages/cupertino_ui/lib/src/menu_anchor.dart:2393— _CupertinoMenuItemInteractionHandlerState's methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
FileTooLong: src/icons.dart packages/material_ui/lib/src/icons.dart— FileTooLong — 10828 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: Icons (172-29464). The bar is 500 significant lines; this is 10328 over it, 21.66× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: src/icons.dart packages/cupertino_ui/lib/src/icons.dart— FileTooLong — 5111 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: CupertinoIcons (68-9811). The bar is 500 significant lines; this is 4611 over it, 10.22× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: src/input_decorator.dart packages/material_ui/lib/src/input_decorator.dart— FileTooLong — 3291 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2791 over it, 6.58× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: swift/swift_generator.dart packages/pigeon/lib/src/swift/swift_generator.dart— FileTooLong — 2874 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2374 over it, 5.75× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: dart/dart_generator.dart packages/pigeon/lib/src/dart/dart_generator.dart— FileTooLong — 2756 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2256 over it, 5.51× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/time_picker.dart packages/material_ui/lib/src/time_picker.dart— FileTooLong — 2617 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2117 over it, 5.23× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/date_picker.dart packages/material_ui/lib/src/date_picker.dart— FileTooLong — 2115 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1615 over it, 4.23× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: gobject/gobject_generator.dart packages/pigeon/lib/src/gobject/gobject_generator.dart— FileTooLong — 2114 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1614 over it, 4.23× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/menu_anchor.dart packages/material_ui/lib/src/menu_anchor.dart— FileTooLong — 1966 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1466 over it, 3.93× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/theme_data.dart packages/material_ui/lib/src/theme_data.dart— FileTooLong — 1941 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: ThemeData (286-3041). The bar is 500 significant lines; this is 1441 over it, 3.88× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: src/pigeon_lib_internal.dart packages/pigeon/lib/src/pigeon_lib_internal.dart— FileTooLong — 1927 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1427 over it, 3.85× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/nav_bar.dart packages/cupertino_ui/lib/src/nav_bar.dart— FileTooLong — 1924 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1424 over it, 3.85× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: kotlin/kotlin_generator.dart packages/pigeon/lib/src/kotlin/kotlin_generator.dart— FileTooLong — 1895 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: KotlinGenerator (249-2656). The bar is 500 significant lines; this is 1395 over it, 3.79× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: cpp/cpp_generator.dart packages/pigeon/lib/src/cpp/cpp_generator.dart— FileTooLong — 1878 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1378 over it, 3.76× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/scaffold.dart packages/material_ui/lib/src/scaffold.dart— FileTooLong — 1709 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1209 over it, 3.42× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/date_picker.dart packages/cupertino_ui/lib/src/date_picker.dart— FileTooLong — 1644 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1144 over it, 3.29× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/menu_anchor.dart packages/cupertino_ui/lib/src/menu_anchor.dart— FileTooLong — 1644 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1144 over it, 3.29× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: svg/parser.dart packages/vector_graphics_compiler/lib/src/svg/parser.dart— FileTooLong — 1521 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1021 over it, 3.04× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/typography.dart packages/material_ui/lib/src/typography.dart— FileTooLong — 1519 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Typography (93-2087). The bar is 500 significant lines; this is 1019 over it, 3.04× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: dart/text.dart packages/rfw/lib/src/dart/text.dart— FileTooLong — 1457 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 957 over it, 2.91× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: table_view/table.dart packages/two_dimensional_scrollables/lib/src/table_view/table.dart— FileTooLong — 1454 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: RenderTableViewport (453-2207). The bar is 500 significant lines; this is 954 over it, 2.91× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: src/tabs.dart packages/material_ui/lib/src/tabs.dart— FileTooLong — 1443 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 943 over it, 2.89× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/chip.dart packages/material_ui/lib/src/chip.dart— FileTooLong — 1422 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 922 over it, 2.84× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/range_slider.dart packages/material_ui/lib/src/range_slider.dart— FileTooLong — 1422 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 922 over it, 2.84× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: objc/objc_generator.dart packages/pigeon/lib/src/objc/objc_generator.dart— FileTooLong — 1408 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 908 over it, 2.82× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
MethodTooLong: ThemeData.debugFillProperties packages/material_ui/lib/src/theme_data.dart:2395— MethodTooLong — debugFillProperties runs 473 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 373 over it, 4.73× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _InputDecoratorState.build packages/material_ui/lib/src/input_decorator.dart:2343— MethodTooLong — build runs 307 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 207 over it, 3.07× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: TextTheme.apply packages/material_ui/lib/src/text_theme.dart:391— MethodTooLong — apply runs 290 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 190 over it, 2.90× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _RenderRangeSlider.paint packages/material_ui/lib/src/range_slider.dart:1763— MethodTooLong — paint runs 270 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 170 over it, 2.70× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _TextFieldState.build packages/material_ui/lib/src/text_field.dart:1566— MethodTooLong — build runs 264 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 164 over it, 2.64× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: GObjectSourceGenerator.writeHostApi packages/pigeon/lib/src/gobject/gobject_generator.dart:1823— MethodTooLong — writeHostApi runs 253 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 153 over it, 2.53× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: RenderTableViewport._paintCells packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1812— MethodTooLong — _paintCells runs 252 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 152 over it, 2.52× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: GObjectSourceGenerator._writeClassEquality packages/pigeon/lib/src/gobject/gobject_generator.dart:1027— MethodTooLong — _writeClassEquality runs 239 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 139 over it, 2.39× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _AppBarState.build packages/material_ui/lib/src/app_bar.dart:904— MethodTooLong — build runs 233 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 133 over it, 2.33× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _SelectToggleButtonRenderObject.paint packages/material_ui/lib/src/toggle_buttons.dart:1339— MethodTooLong — paint runs 226 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 126 over it, 2.26× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _MaterialSwitchState.build packages/material_ui/lib/src/switch.dart:884— MethodTooLong — build runs 209 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 109 over it, 2.09× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _RailDestinationState.build packages/material_ui/lib/src/navigation_rail.dart:713— MethodTooLong — build runs 208 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 108 over it, 2.08× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: TimePickerTemplate.generate packages/material_ui/tool/gen_defaults/temporarily_excluded/templates/time_picker_template.dart:22— MethodTooLong — generate runs 204 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 104 over it, 2.04× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ThemeData.copyWith packages/material_ui/lib/src/theme_data.dart:1586— MethodTooLong — copyWith runs 198 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 98 over it, 1.98× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ScaffoldState.build packages/material_ui/lib/src/scaffold.dart:3103— MethodTooLong — build runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _CupertinoTextFieldState.build packages/cupertino_ui/lib/src/text_field.dart:1529— MethodTooLong — build runs 194 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 94 over it, 1.94× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _DatePickerDialogState.build packages/material_ui/lib/src/date_picker.dart:614— MethodTooLong — build runs 193 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 93 over it, 1.93× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _SnackBarState.build packages/material_ui/lib/src/snack_bar.dart:641— MethodTooLong — build runs 193 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 93 over it, 1.93× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _DropdownMenuState.build packages/material_ui/lib/src/dropdown_menu.dart:1172— MethodTooLong — build runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.90× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ListTile.build packages/material_ui/lib/src/list_tile.dart:817— MethodTooLong — build runs 189 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 89 over it, 1.89× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: DataTable.build packages/material_ui/lib/src/data_table.dart:1074— MethodTooLong — build runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: GObjectSourceGenerator.writeFlutterApi packages/pigeon/lib/src/gobject/gobject_generator.dart:1552— MethodTooLong — writeFlutterApi runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _ButtonStyleState.build packages/material_ui/lib/src/button_style_button.dart:380— MethodTooLong — build runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _TabBarState.build packages/material_ui/lib/src/tabs.dart:2025— MethodTooLong — build runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: _RenderDecoration._layout packages/material_ui/lib/src/input_decorator.dart:967— MethodTooLong — _layout runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
TooManyMethods: DefaultMaterialLocalizations packages/material_ui/lib/src/material_localizations.dart:738— TooManyMethods — 162 methods. The bar is 30 methods; this is 132 over it, 5.40× the bar. Most of these members implement src.MaterialLocalizations (157 of 162 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
TooManyMethods: MaterialLocalizations packages/material_ui/lib/src/material_localizations.dart:47— TooManyMethods — 158 methods. The bar is 30 methods; this is 128 over it, 5.27× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: GoogleMapController packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/GoogleMapController.java:60— TooManyMethods — 121 methods. The bar is 30 methods; this is 91 over it, 4.03× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: _RenderRangeSlider packages/material_ui/lib/src/range_slider.dart:1098— TooManyMethods — 90 methods. The bar is 30 methods; this is 60 over it, 3.00× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: _RenderSlider packages/material_ui/lib/src/slider.dart:1198— TooManyMethods — 83 methods. The bar is 30 methods; this is 53 over it, 2.77× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: GoogleMapsFlutterAndroid packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:61— TooManyMethods — 76 methods. The bar is 30 methods; this is 46 over it, 2.53× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: GoogleMapsFlutterIOS packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:43— TooManyMethods — 73 methods. The bar is 30 methods; this is 43 over it, 2.43× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: GoogleMapsFlutterIOS packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:43— TooManyMethods — 73 methods. The bar is 30 methods; this is 43 over it, 2.43× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: GoogleMapsFlutterIOS packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:43— TooManyMethods — 73 methods. The bar is 30 methods; this is 43 over it, 2.43× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: _SwitchPainter packages/material_ui/lib/src/switch.dart:1122— TooManyMethods — 73 methods. The bar is 30 methods; this is 43 over it, 2.43× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: GoogleMapsFlutterIOS packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:43— TooManyMethods — 72 methods. The bar is 30 methods; this is 42 over it, 2.40× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: AndroidCameraCameraX packages/camera/camera_android_camerax/lib/src/android_camera_camerax.dart:18— TooManyMethods — 65 methods. The bar is 30 methods; this is 35 over it, 2.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: Camera packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/Camera.java:80— TooManyMethods — 63 methods. The bar is 30 methods; this is 33 over it, 2.10× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: AVFoundationCamera packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart:18— TooManyMethods — 62 methods. The bar is 30 methods; this is 32 over it, 2.07× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: _RenderDecoration packages/material_ui/lib/src/input_decorator.dart:728— TooManyMethods — 62 methods. The bar is 30 methods; this is 32 over it, 2.07× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: DefaultCamera packages/camera/camera_avfoundation/darwin/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:9— TooManyMethods — 60 methods. The bar is 30 methods; this is 30 over it, 2.00× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: ColorScheme packages/material_ui/lib/src/color_scheme.dart:65— TooManyMethods — 60 methods. The bar is 30 methods; this is 30 over it, 2.00× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: ProxyApiRegistrar packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/ProxyApiRegistrar.java:22— TooManyMethods — 59 methods. The bar is 30 methods; this is 29 over it, 1.97× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: SwiftGenerator packages/pigeon/lib/src/swift/swift_generator.dart:290— TooManyMethods — 58 methods. The bar is 30 methods; this is 28 over it, 1.93× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: _SwitchPainter packages/cupertino_ui/lib/src/switch.dart:860— TooManyMethods — 57 methods. The bar is 30 methods; this is 27 over it, 1.90× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: GlobalCupertinoLocalizations packages/cupertino_ui/lib/src/global_cupertino_localizations.dart:21— TooManyMethods — 55 methods. The bar is 30 methods; this is 25 over it, 1.83× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: AndroidWebViewController packages/webview_flutter/webview_flutter_android/lib/src/android_webview_controller.dart:136— TooManyMethods — 55 methods. The bar is 30 methods; this is 25 over it, 1.83× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: GlobalMaterialLocalizations packages/material_ui/lib/src/global_material_localizations.dart:21— TooManyMethods — 53 methods. The bar is 30 methods; this is 23 over it, 1.77× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: DartGenerator packages/pigeon/lib/src/dart/dart_generator.dart:649— TooManyMethods — 53 methods. The bar is 30 methods; this is 23 over it, 1.77× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: MethodChannelCamera packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart:19— TooManyMethods — 52 methods. The bar is 30 methods; this is 22 over it, 1.73× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: Icons packages/material_ui/lib/src/icons.dart:110— ClassTooLong — 10782 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 10382 over it, 26.96× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: CupertinoIcons packages/cupertino_ui/lib/src/icons.dart:7— ClassTooLong — 5109 significant lines (blank, comment-only and punctuation-only lines excluded), 0 methods. The bar is 400 significant lines; this is 4709 over it, 12.77× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: KotlinGenerator packages/pigeon/lib/src/kotlin/kotlin_generator.dart:248— ClassTooLong — 1706 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 1306 over it, 4.27× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: ThemeData packages/material_ui/lib/src/theme_data.dart:245— ClassTooLong — 1688 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 1288 over it, 4.22× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: Typography packages/material_ui/lib/src/typography.dart:53— ClassTooLong — 1507 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 1107 over it, 3.77× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: ColorScheme packages/material_ui/lib/src/color_scheme.dart:65— ClassTooLong — 1268 significant lines (blank, comment-only and punctuation-only lines excluded), 60 methods. The bar is 400 significant lines; this is 868 over it, 3.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: RenderTableViewport packages/two_dimensional_scrollables/lib/src/table_view/table.dart:446— ClassTooLong — 1172 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 772 over it, 2.93× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: DefaultCamera packages/camera/camera_avfoundation/darwin/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:9— ClassTooLong — 1043 significant lines (blank, comment-only and punctuation-only lines excluded), 60 methods. The bar is 400 significant lines; this is 643 over it, 2.61× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: CppSourceGenerator packages/pigeon/lib/src/cpp/cpp_generator.dart:859— ClassTooLong — 1032 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 632 over it, 2.58× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: GObjectSourceGenerator packages/pigeon/lib/src/gobject/gobject_generator.dart:791— ClassTooLong — 962 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 562 over it, 2.41× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: JavaGenerator packages/pigeon/lib/src/java/java_generator.dart:128— ClassTooLong — 902 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 502 over it, 2.26× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: AndroidCameraCameraX packages/camera/camera_android_camerax/lib/src/android_camera_camerax.dart:18— ClassTooLong — 885 significant lines (blank, comment-only and punctuation-only lines excluded), 65 methods. The bar is 400 significant lines; this is 485 over it, 2.21× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: Camera packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/Camera.java:80— ClassTooLong — 880 significant lines (blank, comment-only and punctuation-only lines excluded), 63 methods. The bar is 400 significant lines; this is 480 over it, 2.20× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: _RenderRangeSlider packages/material_ui/lib/src/range_slider.dart:1098— ClassTooLong — 824 significant lines (blank, comment-only and punctuation-only lines excluded), 90 methods. The bar is 400 significant lines; this is 424 over it, 2.06× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: RootBuilder packages/pigeon/lib/src/pigeon_lib_internal.dart:1534— ClassTooLong — 807 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 407 over it, 2.02× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: GoogleMapController packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/GoogleMapController.java:60— ClassTooLong — 784 significant lines (blank, comment-only and punctuation-only lines excluded), 121 methods. The bar is 400 significant lines; this is 384 over it, 1.96× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: _RenderDecoration packages/material_ui/lib/src/input_decorator.dart:728— ClassTooLong — 732 significant lines (blank, comment-only and punctuation-only lines excluded), 62 methods. The bar is 400 significant lines; this is 332 over it, 1.83× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: ImagePickerDelegate packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:79— ClassTooLong — 665 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 265 over it, 1.66× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: ObjcSourceGenerator packages/pigeon/lib/src/objc/objc_generator.dart:461— ClassTooLong — 651 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 251 over it, 1.63× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: GoogleMapsFlutterAndroid packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:61— ClassTooLong — 649 significant lines (blank, comment-only and punctuation-only lines excluded), 76 methods. The bar is 400 significant lines; this is 249 over it, 1.62× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: VectorGraphicsCodec packages/vector_graphics_codec/lib/vector_graphics_codec.dart:92— ClassTooLong — 649 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 249 over it, 1.62× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: ArgumentDecoders packages/rfw/lib/src/flutter/argument_decoders.dart:71— ClassTooLong — 637 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 237 over it, 1.59× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: ScaffoldState packages/material_ui/lib/src/scaffold.dart:2271— ClassTooLong — 633 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 233 over it, 1.58× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: SvgParser packages/vector_graphics_compiler/lib/src/svg/parser.dart:613— ClassTooLong — 628 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 228 over it, 1.57× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: _RenderSlider packages/material_ui/lib/src/slider.dart:1198— ClassTooLong — 608 significant lines (blank, comment-only and punctuation-only lines excluded), 83 methods. The bar is 400 significant lines; this is 208 over it, 1.52× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
+ 40 more in this group — see findings.md.
D4 · Code Duplication· Members sharing a duplicated core (6 members, 50+ identical tokens) · ×54
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart:456— packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart:456-478 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:401-422 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:398-419 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:398-419 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:398-419 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:398-419 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart:480— packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart:480-491 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:424-434 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:421-431 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:421-431 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:421-431 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:421-431 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:292— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:292-305 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:264-277 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:269-282 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:269-282 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:269-282 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:333-342 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/image_picker/image_picker_android/lib/image_picker_android.dart:70— packages/image_picker/image_picker_android/lib/image_picker_android.dart:70-97 | packages/image_picker/image_picker_android/lib/image_picker_android.dart:99-125 | packages/image_picker/image_picker_android/lib/image_picker_android.dart:274-297 | packages/image_picker/image_picker_ios/lib/image_picker_ios.dart:190-208 | packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:56-82 | packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:84-112 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/material_ui/lib/src/range_slider_parts.dart:495— packages/material_ui/lib/src/range_slider_parts.dart:495-566 | packages/material_ui/lib/src/range_slider_parts.dart:603-690 | packages/material_ui/lib/src/range_slider_parts.dart:1019-1164 | packages/material_ui/lib/src/slider_parts.dart:295-396 | packages/material_ui/lib/src/slider_parts.dart:428-550 | packages/material_ui/lib/src/slider_parts.dart:1063-1237 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/pigeon/lib/src/gobject/gobject_generator.dart:160— packages/pigeon/lib/src/gobject/gobject_generator.dart:160-172 | packages/pigeon/lib/src/gobject/gobject_generator.dart:796-808 | packages/pigeon/lib/src/java/java_generator.dart:133-146 | packages/pigeon/lib/src/kotlin/kotlin_generator.dart:253-269 | packages/pigeon/lib/src/objc/objc_generator.dart:176-189 | packages/pigeon/lib/src/objc/objc_generator.dart:466-479 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/file_selector/file_selector/example/lib/home_page.dart:15— packages/file_selector/file_selector/example/lib/home_page.dart:15-74 | packages/file_selector/file_selector_android/example/lib/home_page.dart:12-46 | packages/file_selector/file_selector_ios/example/lib/home_page.dart:12-52 | packages/file_selector/file_selector_linux/example/lib/home_page.dart:12-63 | packages/file_selector/file_selector_macos/example/lib/home_page.dart:12-63 | packages/file_selector/file_selector_windows/example/lib/home_page.dart:12-63 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/file_selector/file_selector/example/lib/main.dart:24— packages/file_selector/file_selector/example/lib/main.dart:24-42 | packages/file_selector/file_selector_android/example/lib/main.dart:32-47 | packages/file_selector/file_selector_ios/example/lib/main.dart:22-38 | packages/file_selector/file_selector_linux/example/lib/main.dart:24-42 | packages/file_selector/file_selector_macos/example/lib/main.dart:24-42 | packages/file_selector/file_selector_windows/example/lib/main.dart:24-42 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/file_selector/file_selector/example/lib/open_text_page.dart:80— packages/file_selector/file_selector/example/lib/open_text_page.dart:80-89 | packages/file_selector/file_selector_android/example/lib/open_text_page.dart:72-81 | packages/file_selector/file_selector_ios/example/lib/open_text_page.dart:72-81 | packages/file_selector/file_selector_linux/example/lib/open_text_page.dart:68-77 | packages/file_selector/file_selector_macos/example/lib/open_text_page.dart:68-77 | packages/file_selector/file_selector_windows/example/lib/open_text_page.dart:68-77 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_marker_icons.dart:43— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_marker_icons.dart:43-127 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_marker_icons.dart:44-128 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_marker_icons.dart:44-128 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_marker_icons.dart:44-128 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_marker_icons.dart:44-128 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_marker_icons.dart:44-128 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:206— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:206-215 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart:196-205 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:195-204 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart:195-204 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_markers_clustering.dart:195-204 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart:195-204 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:99— packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:99-113 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:49-65 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:57-73 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:57-73 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:57-73 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:57-73 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:188— packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:188-197 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart:185-194 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:179-188 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart:179-188 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/clustering.dart:179-188 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart:179-188 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/collision_behavior.dart:48— packages/google_maps_flutter/google_maps_flutter/example/lib/collision_behavior.dart:48-64 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/collision_behavior.dart:49-65 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/collision_behavior.dart:49-65 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/collision_behavior.dart:49-65 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/collision_behavior.dart:49-65 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/collision_behavior.dart:49-65 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/collision_behavior.dart:66— packages/google_maps_flutter/google_maps_flutter/example/lib/collision_behavior.dart:66-143 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/collision_behavior.dart:67-144 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/collision_behavior.dart:67-144 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/collision_behavior.dart:67-144 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/collision_behavior.dart:67-144 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/collision_behavior.dart:67-144 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/custom_marker_icon.dart:28— packages/google_maps_flutter/google_maps_flutter/example/lib/custom_marker_icon.dart:28-47 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/custom_marker_icon.dart:28-47 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/custom_marker_icon.dart:28-47 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/custom_marker_icon.dart:28-47 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/custom_marker_icon.dart:28-47 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/custom_marker_icon.dart:28-47 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:88— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:88-126 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:88-125 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:86-122 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:86-122 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:86-122 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:86-122 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:218— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:218-229 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:220-231 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:203-214 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:203-214 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:203-214 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:203-214 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:231— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:231-316 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:233-312 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:216-289 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:216-289 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:216-289 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:216-289 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/map_click.dart:40— packages/google_maps_flutter/google_maps_flutter/example/lib/map_click.dart:40-95 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_click.dart:41-80 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_click.dart:41-80 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_click.dart:41-80 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_click.dart:41-80 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_click.dart:41-80 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/map_map_id.dart:75— packages/google_maps_flutter/google_maps_flutter/example/lib/map_map_id.dart:75-114 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_map_id.dart:74-113 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_map_id.dart:47-78 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_map_id.dart:47-78 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_map_id.dart:47-78 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_map_id.dart:47-78 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:166— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:166-177 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:111-122 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:99-110 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:99-110 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:99-110 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:99-110 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:179— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:179-189 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:124-134 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:112-122 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:112-122 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:112-122 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:112-122 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:295— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:295-307 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:239-250 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:227-238 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:227-238 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:227-238 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:227-238 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:309— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:309-379 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:252-316 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:240-302 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:240-302 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:240-302 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:240-302 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Duplicated block (9 lines × 2) packages/camera/camera_web/lib/src/camera_web.dart:180— packages/camera/camera_web/lib/src/camera_web.dart:180-188 | packages/camera/camera_web/lib/src/camera_web.dart:596-604 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) packages/cupertino_ui/lib/src/date_picker.dart:1644— packages/cupertino_ui/lib/src/date_picker.dart:1644-1652 | packages/cupertino_ui/lib/src/date_picker.dart:2011-2019 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) packages/cupertino_ui/lib/src/date_picker.dart:1712— packages/cupertino_ui/lib/src/date_picker.dart:1712-1720 | packages/cupertino_ui/lib/src/date_picker.dart:2054-2062 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) packages/cupertino_ui/lib/src/menu_anchor.dart:1283— packages/cupertino_ui/lib/src/menu_anchor.dart:1283-1291 | packages/material_ui/lib/src/menu_anchor.dart:3496-3504 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9 lines × 2) packages/cupertino_ui/lib/src/nav_bar.dart:2937— packages/cupertino_ui/lib/src/nav_bar.dart:2937-2947 | packages/cupertino_ui/lib/src/nav_bar.dart:3194-3202 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) packages/cupertino_ui/lib/src/segmented_control.dart:541— packages/cupertino_ui/lib/src/segmented_control.dart:541-549 | REDACTED:953-961 — before extracting anything, compare `packages/cupertino_ui/lib/src/segmented_control.dart` and `REDACTED` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:97— packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:97-105 | packages/image_picker/image_picker_windows/lib/image_picker_windows.dart:126-134 — before extracting anything, compare `packages/image_picker/image_picker_linux/lib/image_picker_linux.dart` and `packages/image_picker/image_picker_windows/lib/image_picker_windows.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) packages/material_ui/lib/src/calendar_date_picker.dart:733— packages/material_ui/lib/src/calendar_date_picker.dart:733-741 | packages/material_ui/lib/src/date_picker.dart:2265-2273 — before extracting anything, compare `packages/material_ui/lib/src/calendar_date_picker.dart` and `packages/material_ui/lib/src/date_picker.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) packages/material_ui/lib/src/dropdown_menu.dart:783— packages/material_ui/lib/src/dropdown_menu.dart:783-791 | packages/material_ui/lib/src/dropdown_menu.dart:835-843 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) packages/material_ui/lib/src/menu_anchor.dart:3622— packages/material_ui/lib/src/menu_anchor.dart:3622-3630 | packages/material_ui/lib/src/popup_menu.dart:898-906 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9 lines × 2) packages/pigeon/lib/src/kotlin/kotlin_generator.dart:552— packages/pigeon/lib/src/kotlin/kotlin_generator.dart:552-560 | packages/pigeon/lib/src/objc/objc_generator.dart:700-708 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9 lines × 2) packages/pigeon/lib/src/kotlin/kotlin_generator.dart:784— packages/pigeon/lib/src/kotlin/kotlin_generator.dart:784-792 | packages/pigeon/lib/src/swift/swift_generator.dart:795-803 — `packages/pigeon/lib/src/kotlin/kotlin_generator.dart` and `packages/pigeon/lib/src/swift/swift_generator.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 78 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (9 lines × 2) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1913— packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1913-1921 | packages/two_dimensional_scrollables/lib/src/table_view/table.dart:2043-2051 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) packages/vector_graphics_compiler/lib/src/svg/parser.dart:288— packages/vector_graphics_compiler/lib/src/svg/parser.dart:288-298 | packages/vector_graphics_compiler/lib/src/svg/parser.dart:335-343 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) script/tool/lib/src/publish_check_command.dart:285— script/tool/lib/src/publish_check_command.dart:285-294 | script/tool/lib/src/publish_command.dart:427-435 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9 lines × 2) packages/camera/camera_android/lib/src/android_camera.dart:235— packages/camera/camera_android/lib/src/android_camera.dart:235-243 | packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart:286-294 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9 lines × 2) packages/cupertino_ui/lib/src/checkbox.dart:392— packages/cupertino_ui/lib/src/checkbox.dart:392-400 | packages/material_ui/lib/src/checkbox.dart:467-475 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9 lines × 2) packages/cupertino_ui/lib/src/desktop_text_selection.dart:77— packages/cupertino_ui/lib/src/desktop_text_selection.dart:77-85 | packages/material_ui/lib/src/desktop_text_selection.dart:92-100 — before extracting anything, compare `packages/cupertino_ui/lib/src/desktop_text_selection.dart` and `packages/material_ui/lib/src/desktop_text_selection.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) packages/cupertino_ui/lib/src/segmented_control.dart:264— packages/cupertino_ui/lib/src/segmented_control.dart:264-272 | REDACTED:598-606 — before extracting anything, compare `packages/cupertino_ui/lib/src/segmented_control.dart` and `REDACTED` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) packages/cupertino_ui/lib/src/text_field.dart:897— packages/cupertino_ui/lib/src/text_field.dart:897-905 | packages/cupertino_ui/lib/src/text_form_field_row.dart:292-300 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9 lines × 2) packages/file_selector/file_selector_linux/lib/file_selector_linux.dart:118— packages/file_selector/file_selector_linux/lib/file_selector_linux.dart:118-126 | packages/file_selector/file_selector_macos/lib/file_selector_macos.dart:124-132 — before extracting anything, compare `packages/file_selector/file_selector_linux/lib/file_selector_linux.dart` and `packages/file_selector/file_selector_macos/lib/file_selector_macos.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) packages/webview_flutter/webview_flutter_android/lib/src/android_webview_cookie_manager.dart:66— packages/webview_flutter/webview_flutter_android/lib/src/android_webview_cookie_manager.dart:66-74 | packages/webview_flutter/webview_flutter_android/lib/src/legacy/webview_android_cookie_manager.dart:33-41 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9 lines × 2) packages/webview_flutter/webview_flutter_android/lib/src/legacy/webview_android.dart:64— packages/webview_flutter/webview_flutter_android/lib/src/legacy/webview_android.dart:64-72 | packages/webview_flutter/webview_flutter_wkwebview/lib/src/legacy/webview_cupertino.dart:54-62 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9 lines × 2) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:56— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:56-64 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:70-78 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:56` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) packages/go_router/example/lib/others/nav_observer.dart:93— packages/go_router/example/lib/others/nav_observer.dart:93-102 | packages/go_router/example/lib/others/nav_observer.dart:119-127 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
+ 29 more in this group — see findings.md.
D4 · Code Duplication· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×40
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:79— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:79-97 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:79-97 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:79-97 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:79-97 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:182— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:182-190 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:182-190 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:182-190 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:182-190 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:208— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:208-224 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:208-224 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:208-224 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:208-224 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:567— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:567-579 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:572-584 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:572-584 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:572-584 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:594— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:594-607 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:599-612 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:599-612 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:599-612 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/image_picker/image_picker_android/lib/image_picker_android.dart:34— packages/image_picker/image_picker_android/lib/image_picker_android.dart:34-50 | packages/image_picker/image_picker_android/lib/image_picker_android.dart:154-170 | packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:20-36 | packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:179-195 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/material_ui/lib/src/button.dart:508— packages/material_ui/lib/src/button.dart:508-516 | packages/material_ui/lib/src/button_style_button.dart:702-710 | packages/material_ui/lib/src/time_picker.dart:898-906 | packages/material_ui/lib/src/toggle_buttons.dart:1674-1682 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/material_ui/lib/src/button.dart:523— packages/material_ui/lib/src/button.dart:523-536 | packages/material_ui/lib/src/button_style_button.dart:717-730 | packages/material_ui/lib/src/time_picker.dart:913-928 | packages/material_ui/lib/src/toggle_buttons.dart:1689-1704 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/material_ui/lib/src/button.dart:538— packages/material_ui/lib/src/button.dart:538-545 | packages/material_ui/lib/src/button_style_button.dart:732-739 | packages/material_ui/lib/src/time_picker.dart:930-937 | packages/material_ui/lib/src/toggle_buttons.dart:1706-1713 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/material_ui/lib/src/checkbox_theme.dart:232— packages/material_ui/lib/src/checkbox_theme.dart:232-246 | packages/material_ui/lib/src/chip_theme.dart:572-586 | packages/material_ui/lib/src/radio_theme.dart:136-150 | packages/material_ui/lib/src/search_view_theme.dart:227-241 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/material_ui/lib/src/date_picker_theme.dart:811— packages/material_ui/lib/src/date_picker_theme.dart:811-999 | packages/material_ui/lib/src/dialog_theme.dart:285-311 | packages/material_ui/lib/src/dialog_theme.dart:504-533 | packages/material_ui/lib/src/drawer_theme.dart:160-172 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/material_ui/lib/src/elevated_button.dart:492— packages/material_ui/lib/src/elevated_button.dart:492-511 | packages/material_ui/lib/src/filled_button.dart:518-538 | packages/material_ui/lib/src/outlined_button.dart:438-458 | packages/material_ui/lib/src/text_button.dart:478-497 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/vector_graphics_codec/lib/vector_graphics_codec.dart:437— packages/vector_graphics_codec/lib/vector_graphics_codec.dart:437-449 | packages/vector_graphics_codec/lib/vector_graphics_codec.dart:865-884 | packages/vector_graphics_codec/lib/vector_graphics_codec.dart:946-955 | packages/vector_graphics_codec/lib/vector_graphics_codec.dart:957-965 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/vector_graphics_compiler/lib/src/svg/parser.dart:464— packages/vector_graphics_compiler/lib/src/svg/parser.dart:464-488 | packages/vector_graphics_compiler/lib/src/svg/parser.dart:495-530 | packages/vector_graphics_compiler/lib/src/svg/parser.dart:550-572 | packages/vector_graphics_compiler/lib/src/svg/parser.dart:574-597 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:82— packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:82-117 | packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:119-154 | packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:158-193 | packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:195-230 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/camera/camera/example/lib/main.dart:71— packages/camera/camera/example/lib/main.dart:71-100 | packages/camera/camera_android/example/lib/main.dart:75-104 | packages/camera/camera_android_camerax/example/lib/main.dart:74-103 | packages/camera/camera_avfoundation/example/lib/main.dart:75-104 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/camera/camera/example/lib/main.dart:115— packages/camera/camera/example/lib/main.dart:115-129 | packages/camera/camera_android/example/lib/main.dart:114-128 | packages/camera/camera_android_camerax/example/lib/main.dart:114-128 | packages/camera/camera_avfoundation/example/lib/main.dart:114-128 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/camera/camera/example/lib/main.dart:133— packages/camera/camera/example/lib/main.dart:133-165 | packages/camera/camera_android/example/lib/main.dart:130-162 | packages/camera/camera_android_camerax/example/lib/main.dart:132-164 | packages/camera/camera_avfoundation/example/lib/main.dart:130-162 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/camera/camera/example/lib/main.dart:294— packages/camera/camera/example/lib/main.dart:294-333 | packages/camera/camera_android/example/lib/main.dart:298-337 | packages/camera/camera_android_camerax/example/lib/main.dart:300-339 | packages/camera/camera_avfoundation/example/lib/main.dart:298-337 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/camera/camera/example/lib/main.dart:593— packages/camera/camera/example/lib/main.dart:593-656 | packages/camera/camera_android/example/lib/main.dart:595-664 | packages/camera/camera_android_camerax/example/lib/main.dart:586-654 | packages/camera/camera_avfoundation/example/lib/main.dart:594-661 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/camera/camera/example/lib/main.dart:658— packages/camera/camera/example/lib/main.dart:658-671 | packages/camera/camera_android/example/lib/main.dart:666-679 | packages/camera/camera_android_camerax/example/lib/main.dart:656-669 | packages/camera/camera_avfoundation/example/lib/main.dart:663-676 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/camera/camera/example/lib/main.dart:710— packages/camera/camera/example/lib/main.dart:710-727 | packages/camera/camera_android/example/lib/main.dart:718-735 | packages/camera/camera_android_camerax/example/lib/main.dart:708-725 | packages/camera/camera_avfoundation/example/lib/main.dart:715-732 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/camera/camera/example/lib/main.dart:764— packages/camera/camera/example/lib/main.dart:764-775 | packages/camera/camera_android/example/lib/main.dart:772-783 | packages/camera/camera_android_camerax/example/lib/main.dart:762-773 | packages/camera/camera_avfoundation/example/lib/main.dart:769-780 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/camera/camera/example/lib/main.dart:777— packages/camera/camera/example/lib/main.dart:777-794 | packages/camera/camera_android/example/lib/main.dart:785-802 | packages/camera/camera_android_camerax/example/lib/main.dart:775-792 | packages/camera/camera_avfoundation/example/lib/main.dart:782-799 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) packages/camera/camera/example/lib/main.dart:814— packages/camera/camera/example/lib/main.dart:814-833 | packages/camera/camera_android/example/lib/main.dart:822-841 | packages/camera/camera_android_camerax/example/lib/main.dart:812-831 | packages/camera/camera_avfoundation/example/lib/main.dart:819-838 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Duplicated block (14 lines × 2) packages/cupertino_ui/lib/src/date_picker.dart:1545— packages/cupertino_ui/lib/src/date_picker.dart:1545-1558 | packages/cupertino_ui/lib/src/date_picker.dart:1913-1926 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) packages/cupertino_ui/lib/src/nav_bar.dart:2072— packages/cupertino_ui/lib/src/nav_bar.dart:2072-2085 | packages/cupertino_ui/lib/src/nav_bar.dart:2100-2113 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) packages/cupertino_ui/lib/src/text_field.dart:977— packages/cupertino_ui/lib/src/text_field.dart:977-990 | packages/material_ui/lib/src/text_field.dart:1009-1022 — before extracting anything, compare `packages/cupertino_ui/lib/src/text_field.dart` and `packages/material_ui/lib/src/text_field.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) packages/image_picker/image_picker_android/lib/image_picker_android.dart:300— packages/image_picker/image_picker_android/lib/image_picker_android.dart:300-313 | packages/image_picker/image_picker_ios/lib/image_picker_ios.dart:213-226 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (14 lines × 2) packages/material_ui/lib/src/dropdown_menu.dart:1648— packages/material_ui/lib/src/dropdown_menu.dart:1648-1661 | packages/material_ui/lib/src/dropdown_menu.dart:1675-1688 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) packages/material_ui/lib/src/dropdown_menu.dart:1715— packages/material_ui/lib/src/dropdown_menu.dart:1715-1728 | packages/material_ui/lib/src/list_tile.dart:1755-1768 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (14 lines × 2) packages/material_ui/lib/src/slider.dart:2280— packages/material_ui/lib/src/slider.dart:2280-2293 | packages/material_ui/lib/src/slider.dart:2369-2382 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) packages/material_ui/lib/src/stepper.dart:693— packages/material_ui/lib/src/stepper.dart:693-706 | packages/material_ui/lib/src/stepper.dart:725-738 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) packages/material_ui/lib/src/time_picker.dart:915— packages/material_ui/lib/src/time_picker.dart:915-928 | packages/material_ui/lib/src/toggle_buttons.dart:1691-1704 — before extracting anything, compare `packages/material_ui/lib/src/time_picker.dart` and `packages/material_ui/lib/src/toggle_buttons.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) packages/vector_graphics_compiler/lib/src/paint.dart:160— packages/vector_graphics_compiler/lib/src/paint.dart:160-173 | packages/vector_graphics_compiler/lib/src/paint.dart:302-315 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) packages/video_player/video_player/lib/video_player.dart:81— packages/video_player/video_player/lib/video_player.dart:81-94 | packages/video_player/video_player_platform_interface/lib/video_player_platform_interface.dart:673-686 — before extracting anything, compare `packages/video_player/video_player/lib/video_player.dart` and `packages/video_player/video_player_platform_interface/lib/video_player_platform_interface.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) packages/video_player/video_player/lib/video_player.dart:1598— packages/video_player/video_player/lib/video_player.dart:1598-1611 | packages/video_player/video_player_platform_interface/lib/video_player_platform_interface.dart:764-777 — before extracting anything, compare `packages/video_player/video_player/lib/video_player.dart` and `packages/video_player/video_player_platform_interface/lib/video_player_platform_interface.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) packages/camera/camera/lib/src/camera_controller.dart:1010— packages/camera/camera/lib/src/camera_controller.dart:1010-1023 | packages/camera/camera_android_camerax/example/lib/camera_controller.dart:858-871 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (14 lines × 2) packages/camera/camera_android/lib/src/android_camera.dart:411— packages/camera/camera_android/lib/src/android_camera.dart:411-424 | packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart:650-663 — before extracting anything, compare `packages/camera/camera_android/lib/src/android_camera.dart` and `packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) packages/image_picker/image_picker_ios/ios/image_picker_ios/Sources/image_picker_ios/ImagePickerPlugin.swift:203— packages/image_picker/image_picker_ios/ios/image_picker_ios/Sources/image_picker_ios/ImagePickerPlugin.swift:203-216 | packages/image_picker/image_picker_ios/ios/image_picker_ios/Sources/image_picker_ios/ImagePickerPlugin.swift:276-289 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/image_picker/image_picker_ios/ios/image_picker_ios/Sources/image_picker_ios/ImagePickerPlugin.swift:203` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (14 lines × 2) packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:126— packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:126-139 | packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:144-157 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:126` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `completionHandler` to `@escaping @MainActor () -> Void` in one and `@escaping () -> Void` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (14 lines × 2) packages/animations/example/lib/container_transition.dart:150— packages/animations/example/lib/container_transition.dart:150-163 | packages/animations/example/lib/container_transition.dart:174-187 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) packages/camera/camera/example/lib/main.dart:570— packages/camera/camera/example/lib/main.dart:570-583 | packages/camera/camera_android_camerax/example/lib/main.dart:563-576 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android_camerax/example/lib/main.dart` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 652 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) packages/camera/camera_android/example/lib/main.dart:572— packages/camera/camera_android/example/lib/main.dart:572-585 | packages/camera/camera_avfoundation/example/lib/main.dart:571-584 — before extracting anything, compare `packages/camera/camera_android/example/lib/main.dart` and `packages/camera/camera_avfoundation/example/lib/main.dart` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 663 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) packages/cupertino_ui/example/lib/radio/cupertino_radio.0.dart:41— packages/cupertino_ui/example/lib/radio/cupertino_radio.0.dart:41-54 | packages/cupertino_ui/example/lib/radio/cupertino_radio.toggleable.0.dart:40-53 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (14 lines × 2) packages/file_selector/file_selector_linux/example/lib/get_multiple_directories_page.dart:17— packages/file_selector/file_selector_linux/example/lib/get_multiple_directories_page.dart:17-30 | packages/file_selector/file_selector_windows/example/lib/get_multiple_directories_page.dart:17-30 — before extracting anything, compare `packages/file_selector/file_selector_linux/example/lib/get_multiple_directories_page.dart` and `packages/file_selector/file_selector_windows/example/lib/get_multiple_directories_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) packages/go_router/example/lib/shell_route.dart:126— packages/go_router/example/lib/shell_route.dart:126-139 | packages/go_router/example/lib/shell_route_top_route.dart:150-163 — before extracting anything, compare `packages/go_router/example/lib/shell_route.dart` and `packages/go_router/example/lib/shell_route_top_route.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) packages/go_router/example/lib/top_level_on_enter.dart:259— packages/go_router/example/lib/top_level_on_enter.dart:259-272 | packages/go_router/example/lib/top_level_on_enter.dart:274-287 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) packages/google_maps_flutter/google_maps_flutter/example/lib/main.dart:82— packages/google_maps_flutter/google_maps_flutter/example/lib/main.dart:82-95 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/main.dart:80-93 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (14 lines × 2) packages/google_sign_in/google_sign_in_android/example/lib/main.dart:60— packages/google_sign_in/google_sign_in_android/example/lib/main.dart:60-73 | packages/google_sign_in/google_sign_in_ios/example/lib/main.dart:58-71 — before extracting anything, compare `packages/google_sign_in/google_sign_in_android/example/lib/main.dart` and `packages/google_sign_in/google_sign_in_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) packages/cupertino_ui/lib/src/radio.dart:290— packages/cupertino_ui/lib/src/radio.dart:290-302 | packages/material_ui/lib/src/radio.dart:457-469 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (13 lines × 2) packages/cupertino_ui/lib/src/segmented_control.dart:779— packages/cupertino_ui/lib/src/segmented_control.dart:779-791 | packages/material_ui/lib/src/segmented_button.dart:1038-1050 — before extracting anything, compare `packages/cupertino_ui/lib/src/segmented_control.dart` and `packages/material_ui/lib/src/segmented_button.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) packages/cupertino_ui/lib/src/switch.dart:1142— packages/cupertino_ui/lib/src/switch.dart:1142-1154 | packages/material_ui/lib/src/switch.dart:1487-1499 — before extracting anything, compare `packages/cupertino_ui/lib/src/switch.dart` and `packages/material_ui/lib/src/switch.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) packages/cupertino_ui/lib/src/text_field.dart:1666— packages/cupertino_ui/lib/src/text_field.dart:1666-1678 | packages/material_ui/lib/src/text_field.dart:1737-1749 — before extracting anything, compare `packages/cupertino_ui/lib/src/text_field.dart` and `packages/material_ui/lib/src/text_field.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) packages/image_picker/image_picker_android/lib/image_picker_android.dart:127— packages/image_picker/image_picker_android/lib/image_picker_android.dart:127-139 | packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:114-126 — before extracting anything, compare `packages/image_picker/image_picker_android/lib/image_picker_android.dart` and `packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) packages/image_picker/image_picker_android/lib/image_picker_android.dart:232— packages/image_picker/image_picker_android/lib/image_picker_android.dart:232-244 | packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:270-282 — before extracting anything, compare `packages/image_picker/image_picker_android/lib/image_picker_android.dart` and `packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) packages/material_ui/lib/src/checkbox.dart:629— packages/material_ui/lib/src/checkbox.dart:629-641 | packages/material_ui/lib/src/switch.dart:1068-1080 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (13 lines × 2) packages/material_ui/lib/src/checkbox.dart:892— packages/material_ui/lib/src/checkbox.dart:892-904 | packages/material_ui/lib/src/radio.dart:877-889 — before extracting anything, compare `packages/material_ui/lib/src/checkbox.dart` and `packages/material_ui/lib/src/radio.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) packages/material_ui/lib/src/expansion_tile.dart:587— packages/material_ui/lib/src/expansion_tile.dart:587-599 | packages/material_ui/lib/src/expansion_tile.dart:607-619 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) packages/material_ui/lib/src/page_transitions_theme.dart:1224— packages/material_ui/lib/src/page_transitions_theme.dart:1224-1236 | packages/material_ui/lib/src/page_transitions_theme.dart:1318-1330 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) packages/material_ui/lib/src/range_slider.dart:1611— packages/material_ui/lib/src/range_slider.dart:1611-1623 | packages/material_ui/lib/src/slider.dart:1662-1674 — before extracting anything, compare `packages/material_ui/lib/src/range_slider.dart` and `packages/material_ui/lib/src/slider.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) packages/pigeon/lib/src/cpp/cpp_generator.dart:182— packages/pigeon/lib/src/cpp/cpp_generator.dart:182-194 | packages/pigeon/lib/src/cpp/cpp_generator.dart:864-876 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) packages/pigeon/lib/src/gobject/gobject_generator.dart:160— packages/pigeon/lib/src/gobject/gobject_generator.dart:160-172 | packages/pigeon/lib/src/gobject/gobject_generator.dart:796-808 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) packages/pigeon/lib/src/java/java_generator.dart:487— packages/pigeon/lib/src/java/java_generator.dart:487-499 | packages/pigeon/lib/src/java/java_generator.dart:541-553 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) packages/pigeon/lib/src/java/java_generator.dart:755— packages/pigeon/lib/src/java/java_generator.dart:755-767 | packages/pigeon/lib/src/swift/swift_generator.dart:592-604 — `packages/pigeon/lib/src/java/java_generator.dart` and `packages/pigeon/lib/src/swift/swift_generator.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (13 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/main.dart:554— packages/webview_flutter/webview_flutter_android/example/lib/main.dart:554-566 | packages/webview_flutter/webview_flutter_android/lib/src/android_webview_controller.dart:1230-1242 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (13 lines × 2) script/tool/lib/src/format_command.dart:274— script/tool/lib/src/format_command.dart:274-286 | script/tool/lib/src/format_command.dart:300-312 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) packages/cupertino_ui/lib/src/switch.dart:863— packages/cupertino_ui/lib/src/switch.dart:863-875 | packages/material_ui/lib/src/switch.dart:1125-1137 — before extracting anything, compare `packages/cupertino_ui/lib/src/switch.dart` and `packages/material_ui/lib/src/switch.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) packages/material_ui/lib/src/desktop_text_selection.dart:78— packages/material_ui/lib/src/desktop_text_selection.dart:78-90 | packages/material_ui/lib/src/text_selection.dart:120-132 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (13 lines × 2) packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java:239— packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java:239-251 | packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java:159-171 — before extracting anything, compare `packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java` and `packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 2) packages/cupertino_ui/example/lib/form_row/cupertino_form_row.0.dart:68— packages/cupertino_ui/example/lib/form_row/cupertino_form_row.0.dart:68-80 | packages/cupertino_ui/example/lib/form_row/cupertino_form_row.0.dart:89-102 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) packages/cupertino_ui/example/lib/segmented_control/cupertino_segmented_control.0.dart:78— packages/cupertino_ui/example/lib/segmented_control/cupertino_segmented_control.0.dart:78-90 | packages/cupertino_ui/example/lib/segmented_control/cupertino_sliding_segmented_control.0.dart:86-98 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (13 lines × 2) packages/file_selector/file_selector_android/example/lib/home_page.dart:34— packages/file_selector/file_selector_android/example/lib/home_page.dart:34-46 | packages/file_selector/file_selector_ios/example/lib/home_page.dart:40-52 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (13 lines × 2) packages/go_router/example/lib/shell_route.dart:141— packages/go_router/example/lib/shell_route.dart:141-153 | packages/go_router/example/lib/shell_route_top_route.dart:181-193 — before extracting anything, compare `packages/go_router/example/lib/shell_route.dart` and `packages/go_router/example/lib/shell_route_top_route.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) packages/go_router_builder/example/lib/shell_route_with_keys_example.dart:153— packages/go_router_builder/example/lib/shell_route_with_keys_example.dart:153-165 | packages/go_router_builder/example/lib/shell_route_with_observers_example.dart:154-166 — before extracting anything, compare `packages/go_router_builder/example/lib/shell_route_with_keys_example.dart` and `packages/go_router_builder/example/lib/shell_route_with_observers_example.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart:349— packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart:349-358 | packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart:408-417 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) packages/cupertino_ui/lib/src/global_cupertino_localizations.dart:502— packages/cupertino_ui/lib/src/global_cupertino_localizations.dart:502-511 | packages/material_ui/lib/src/global_material_localizations.dart:708-717 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (10 lines × 2) packages/cupertino_ui/lib/src/switch.dart:512— packages/cupertino_ui/lib/src/switch.dart:512-521 | packages/material_ui/lib/src/switch.dart:645-654 — before extracting anything, compare `packages/cupertino_ui/lib/src/switch.dart` and `packages/material_ui/lib/src/switch.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) packages/material_ui/lib/src/menu_style.dart:394— packages/material_ui/lib/src/menu_style.dart:394-403 | packages/material_ui/lib/src/search_bar_theme.dart:247-256 — before extracting anything, compare `packages/material_ui/lib/src/menu_style.dart` and `packages/material_ui/lib/src/search_bar_theme.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) packages/material_ui/lib/src/shapes/cubic.dart:255— packages/material_ui/lib/src/shapes/cubic.dart:255-264 | packages/material_ui/lib/src/shapes/cubic.dart:302-311 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) packages/material_ui/lib/src/slider_parts.dart:517— packages/material_ui/lib/src/slider_parts.dart:517-526 | packages/material_ui/lib/src/slider_parts.dart:1179-1188 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) packages/pigeon/lib/src/dart/dart_generator.dart:1407— packages/pigeon/lib/src/dart/dart_generator.dart:1407-1416 | packages/pigeon/lib/src/dart/dart_generator.dart:1420-1429 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) packages/pigeon/lib/src/java/java_generator.dart:442— packages/pigeon/lib/src/java/java_generator.dart:442-451 | packages/pigeon/lib/src/java/java_generator.dart:453-462 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) packages/pigeon/lib/src/java/java_generator.dart:1243— packages/pigeon/lib/src/java/java_generator.dart:1243-1252 | packages/pigeon/lib/src/java/java_generator.dart:1255-1264 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) packages/pigeon/lib/src/objc/objc_generator.dart:923— packages/pigeon/lib/src/objc/objc_generator.dart:923-932 | packages/pigeon/lib/src/swift/swift_generator.dart:632-641 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (10 lines × 2) packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:90— packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:90-99 | packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart:94-103 — before extracting anything, compare `packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart` and `packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) packages/vector_graphics_compiler/lib/src/svg/masking_optimizer.dart:255— packages/vector_graphics_compiler/lib/src/svg/masking_optimizer.dart:255-264 | packages/vector_graphics_compiler/lib/src/svg/overdraw_optimizer.dart:286-295 — before extracting anything, compare `packages/vector_graphics_compiler/lib/src/svg/masking_optimizer.dart` and `packages/vector_graphics_compiler/lib/src/svg/overdraw_optimizer.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) packages/webview_flutter/webview_flutter_android/lib/src/android_webview_cookie_manager.dart:55— packages/webview_flutter/webview_flutter_android/lib/src/android_webview_cookie_manager.dart:55-64 | packages/webview_flutter/webview_flutter_android/lib/src/legacy/webview_android_cookie_manager.dart:22-31 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (10 lines × 2) packages/cupertino_ui/lib/src/text_form_field_row.dart:315— packages/cupertino_ui/lib/src/text_form_field_row.dart:315-324 | packages/material_ui/lib/src/text_form_field.dart:369-378 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (10 lines × 2) packages/cupertino_ui/lib/src/text_selection_toolbar.dart:1300— packages/cupertino_ui/lib/src/text_selection_toolbar.dart:1300-1309 | packages/material_ui/lib/src/text_selection_toolbar.dart:732-741 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (10 lines × 2) packages/file_selector/file_selector/example/lib/get_multiple_directories_page.dart:66— packages/file_selector/file_selector/example/lib/get_multiple_directories_page.dart:66-75 | packages/file_selector/file_selector_linux/example/lib/get_multiple_directories_page.dart:63-72 — before extracting anything, compare `packages/file_selector/file_selector/example/lib/get_multiple_directories_page.dart` and `packages/file_selector/file_selector_linux/example/lib/get_multiple_directories_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) packages/file_selector/file_selector_macos/example/lib/get_multiple_directories_page.dart:63— packages/file_selector/file_selector_macos/example/lib/get_multiple_directories_page.dart:63-72 | packages/file_selector/file_selector_windows/example/lib/get_multiple_directories_page.dart:63-72 — before extracting anything, compare `packages/file_selector/file_selector_macos/example/lib/get_multiple_directories_page.dart` and `packages/file_selector/file_selector_windows/example/lib/get_multiple_directories_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) packages/go_router/example/lib/shell_route.dart:155— packages/go_router/example/lib/shell_route.dart:155-164 | packages/go_router/example/lib/shell_route_top_route.dart:195-204 — before extracting anything, compare `packages/go_router/example/lib/shell_route.dart` and `packages/go_router/example/lib/shell_route_top_route.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) packages/material_ui/example/lib/reorderable_list/reorderable_list_view.1.dart:45— packages/material_ui/example/lib/reorderable_list/reorderable_list_view.1.dart:45-54 | packages/material_ui/example/lib/reorderable_list/reorderable_list_view.2.dart:55-64 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (10 lines × 2) packages/material_ui/example/lib/search_anchor/search_anchor.0.dart:27— packages/material_ui/example/lib/search_anchor/search_anchor.0.dart:27-36 | packages/material_ui/example/lib/search_anchor/search_anchor.0.dart:48-57 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) packages/two_dimensional_scrollables/example/lib/table_view/table_explorer.dart:86— packages/two_dimensional_scrollables/example/lib/table_view/table_explorer.dart:86-95 | packages/two_dimensional_scrollables/example/lib/tree_view/tree_explorer.dart:77-86 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (10 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/main.dart:598— packages/webview_flutter/webview_flutter_android/example/lib/main.dart:598-607 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:545-554 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) script/tool/lib/src/native_test_command.dart:565— script/tool/lib/src/native_test_command.dart:565-574 | script/tool/lib/src/native_test_command.dart:577-594 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) packages/camera/camera/example/lib/main.dart:201— packages/camera/camera/example/lib/main.dart:201-210 | packages/camera/camera_android_camerax/example/lib/main.dart:200-209 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android_camerax/example/lib/main.dart` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 652 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) packages/camera/camera_android/example/lib/main.dart:198— packages/camera/camera_android/example/lib/main.dart:198-207 | packages/camera/camera_avfoundation/example/lib/main.dart:198-207 — before extracting anything, compare `packages/camera/camera_android/example/lib/main.dart` and `packages/camera/camera_avfoundation/example/lib/main.dart` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 663 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
+ 8 more in this group — see findings.md.
D4 · Code Duplication· Members sharing a duplicated core (5 members, 50+ identical tokens) · ×32
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:59— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:59-76 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:59-74 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:59-74 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:59-74 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:59-74 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:181— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:181-192 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:195-206 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:195-206 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:195-206 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:195-206 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:247— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:247-254 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:219-226 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:224-231 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:224-231 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:224-231 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:256— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:256-263 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:228-235 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:233-240 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:233-240 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:233-240 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:265— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:265-272 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:237-244 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:242-249 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:242-249 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:242-249 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:274— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:274-281 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:246-253 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:251-258 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:251-258 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:251-258 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:283— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:283-290 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:255-262 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:260-267 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:260-267 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:260-267 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:307— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:307-320 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:279-292 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:284-297 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:284-297 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:284-297 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:322— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:322-344 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:294-316 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:299-321 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:299-321 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:299-321 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:486— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:486-559 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:411-454 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:416-459 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:416-459 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:416-459 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:561— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:561-576 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:456-471 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:461-476 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:461-476 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:461-476 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:697— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:697-707 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:581-592 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:586-597 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:586-597 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:586-597 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:738— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:738-758 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:617-636 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:622-641 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:622-641 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:622-641 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:760— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:760-779 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:638-656 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:643-661 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:643-661 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:643-661 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:781— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:781-798 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:658-675 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:663-680 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:663-680 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:663-680 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:800— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:800-819 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:677-694 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:682-699 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:682-699 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:682-699 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:1043— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:1043-1055 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:948-960 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:921-933 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:921-933 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:921-933 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/material_ui/lib/src/date_picker_theme.dart:811— packages/material_ui/lib/src/date_picker_theme.dart:811-999 | packages/material_ui/lib/src/dialog_theme.dart:285-311 | packages/material_ui/lib/src/dialog_theme.dart:504-533 | packages/material_ui/lib/src/navigation_bar_theme.dart:215-258 | packages/material_ui/lib/src/navigation_drawer_theme.dart:195-222 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/pigeon/lib/src/cpp/cpp_generator.dart:820— packages/pigeon/lib/src/cpp/cpp_generator.dart:820-842 | packages/pigeon/lib/src/java/java_generator.dart:205-223 | packages/pigeon/lib/src/kotlin/kotlin_generator.dart:330-347 | packages/pigeon/lib/src/objc/objc_generator.dart:209-233 | packages/pigeon/lib/src/swift/swift_generator.dart:334-351 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/pigeon/lib/src/swift/swift_generator.dart:3100— packages/pigeon/lib/src/swift/swift_generator.dart:3100-3145 | packages/pigeon/lib/src/swift/swift_generator.dart:3148-3186 | packages/pigeon/lib/src/swift/swift_generator.dart:3189-3227 | packages/pigeon/lib/src/swift/swift_generator.dart:3231-3276 | packages/pigeon/lib/src/swift/swift_generator.dart:3599-3691 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/cross_file/cross_file/example/lib/main.dart:28— packages/cross_file/cross_file/example/lib/main.dart:28-54 | packages/cross_file/cross_file_android/example/lib/main.dart:28-54 | packages/cross_file/cross_file_darwin/example/lib/main.dart:28-54 | packages/cross_file/cross_file_io/example/lib/main.dart:28-54 | packages/cross_file/cross_file_web/example/lib/main.dart:23-49 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/cross_file/cross_file/example/lib/main.dart:120— packages/cross_file/cross_file/example/lib/main.dart:120-129 | packages/cross_file/cross_file_android/example/lib/main.dart:120-129 | packages/cross_file/cross_file_darwin/example/lib/main.dart:120-129 | packages/cross_file/cross_file_io/example/lib/main.dart:120-129 | packages/cross_file/cross_file_web/example/lib/main.dart:85-94 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/file_selector/file_selector/example/lib/open_image_page.dart:74— packages/file_selector/file_selector/example/lib/open_image_page.dart:74-90 | packages/file_selector/file_selector_ios/example/lib/open_image_page.dart:75-91 | packages/file_selector/file_selector_linux/example/lib/open_image_page.dart:71-87 | packages/file_selector/file_selector_macos/example/lib/open_image_page.dart:71-87 | packages/file_selector/file_selector_windows/example/lib/open_image_page.dart:71-87 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart:75— packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart:75-100 | packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart:74-99 | packages/file_selector/file_selector_linux/example/lib/open_multiple_images_page.dart:66-91 | packages/file_selector/file_selector_macos/example/lib/open_multiple_images_page.dart:66-91 | packages/file_selector/file_selector_windows/example/lib/open_multiple_images_page.dart:66-91 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:41— packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:41-93 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:41-93 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:41-93 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:41-93 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:41-93 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Duplicated block (12 lines × 2) packages/cupertino_ui/lib/src/date_picker.dart:2605— packages/cupertino_ui/lib/src/date_picker.dart:2605-2616 | packages/cupertino_ui/lib/src/date_picker.dart:2678-2689 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) packages/cupertino_ui/lib/src/desktop_text_selection.dart:177— packages/cupertino_ui/lib/src/desktop_text_selection.dart:177-188 | packages/cupertino_ui/lib/src/text_selection.dart:283-294 — before extracting anything, compare `packages/cupertino_ui/lib/src/desktop_text_selection.dart` and `packages/cupertino_ui/lib/src/text_selection.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) packages/cupertino_ui/lib/src/menu_anchor.dart:1435— packages/cupertino_ui/lib/src/menu_anchor.dart:1435-1446 | packages/cupertino_ui/lib/src/menu_anchor.dart:1461-1472 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/advanced_marker.dart:125— packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/advanced_marker.dart:125-136 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/marker.dart:345-356 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (12 lines × 2) packages/image_picker/image_picker_android/lib/image_picker_android.dart:54— packages/image_picker/image_picker_android/lib/image_picker_android.dart:54-65 | packages/image_picker/image_picker_android/lib/image_picker_android.dart:190-201 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:40— packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:40-51 | packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:215-226 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) packages/material_ui/lib/src/button.dart:525— packages/material_ui/lib/src/button.dart:525-536 | packages/material_ui/lib/src/button_style_button.dart:719-730 — before extracting anything, compare `packages/material_ui/lib/src/button.dart` and `packages/material_ui/lib/src/button_style_button.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) packages/material_ui/lib/src/calendar_date_picker.dart:1140— packages/material_ui/lib/src/calendar_date_picker.dart:1140-1151 | packages/material_ui/lib/src/date_picker.dart:2637-2648 — before extracting anything, compare `packages/material_ui/lib/src/calendar_date_picker.dart` and `packages/material_ui/lib/src/date_picker.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) packages/material_ui/lib/src/range_slider.dart:1106— packages/material_ui/lib/src/range_slider.dart:1106-1117 | packages/material_ui/lib/src/slider.dart:1206-1217 — before extracting anything, compare `packages/material_ui/lib/src/range_slider.dart` and `packages/material_ui/lib/src/slider.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) packages/material_ui/lib/src/range_slider.dart:1922— packages/material_ui/lib/src/range_slider.dart:1922-1933 | packages/material_ui/lib/src/slider.dart:1869-1880 — before extracting anything, compare `packages/material_ui/lib/src/range_slider.dart` and `packages/material_ui/lib/src/slider.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) packages/pigeon/lib/src/kotlin/jnigen_config_generator.dart:45— packages/pigeon/lib/src/kotlin/jnigen_config_generator.dart:45-56 | packages/pigeon/lib/src/swift/ffigen_config_generator.dart:50-61 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (12 lines × 2) packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:65— packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:65-76 | packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart:69-80 — before extracting anything, compare `packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart` and `packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:2289— packages/two_dimensional_scrollables/lib/src/table_view/table.dart:2289-2300 | packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart:705-716 — before extracting anything, compare `packages/two_dimensional_scrollables/lib/src/table_view/table.dart` and `packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) packages/vector_graphics_compiler/lib/src/svg/clipping_optimizer.dart:115— packages/vector_graphics_compiler/lib/src/svg/clipping_optimizer.dart:115-126 | packages/vector_graphics_compiler/lib/src/svg/overdraw_optimizer.dart:271-282 — before extracting anything, compare `packages/vector_graphics_compiler/lib/src/svg/clipping_optimizer.dart` and `packages/vector_graphics_compiler/lib/src/svg/overdraw_optimizer.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) packages/vector_graphics_compiler/lib/src/svg/parser.dart:1458— packages/vector_graphics_compiler/lib/src/svg/parser.dart:1458-1469 | packages/vector_graphics_compiler/lib/src/svg/parser.dart:1529-1540 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) packages/video_player/video_player_android/lib/src/android_video_player.dart:112— packages/video_player/video_player_android/lib/src/android_video_player.dart:112-123 | packages/video_player/video_player_avfoundation/lib/src/avfoundation_video_player.dart:97-108 — before extracting anything, compare `packages/video_player/video_player_android/lib/src/android_video_player.dart` and `packages/video_player/video_player_avfoundation/lib/src/avfoundation_video_player.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java:221— packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java:221-232 | packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java:141-152 — before extracting anything, compare `packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java` and `packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerPlugin.java:282— packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerPlugin.java:282-293 | packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerPlugin.java:337-348 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerPlugin.java:282` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) packages/cross_file/cross_file_darwin/darwin/cross_file_darwin/Sources/cross_file_darwin/ProxyAPIRegistrar.swift:31— packages/cross_file/cross_file_darwin/darwin/cross_file_darwin/Sources/cross_file_darwin/ProxyAPIRegistrar.swift:31-42 | packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/ProxyAPIRegistrar.swift:80-91 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (12 lines × 2) packages/cupertino_ui/example/lib/nav_bar/cupertino_navigation_bar.0.dart:39— packages/cupertino_ui/example/lib/nav_bar/cupertino_navigation_bar.0.dart:39-50 | packages/cupertino_ui/example/lib/nav_bar/cupertino_navigation_bar.1.dart:39-50 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (12 lines × 2) packages/go_router_builder/example/lib/shell_route_with_keys_example.dart:114— packages/go_router_builder/example/lib/shell_route_with_keys_example.dart:114-125 | packages/go_router_builder/example/lib/shell_route_with_observers_example.dart:117-128 — before extracting anything, compare `packages/go_router_builder/example/lib/shell_route_with_keys_example.dart` and `packages/go_router_builder/example/lib/shell_route_with_observers_example.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) packages/google_adsense/example/lib/ad_unit_widget.dart:47— packages/google_adsense/example/lib/ad_unit_widget.dart:47-58 | packages/google_adsense/example/lib/main.dart:51-62 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (12 lines × 2) packages/in_app_purchase/in_app_purchase/example/lib/main.dart:348— packages/in_app_purchase/in_app_purchase/example/lib/main.dart:348-359 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:446-457 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase/example/lib/main.dart` and `packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 208 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) packages/in_app_purchase/in_app_purchase/example/lib/main.dart:423— packages/in_app_purchase/in_app_purchase/example/lib/main.dart:423-434 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:639-650 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase/example/lib/main.dart` and `packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) packages/local_auth/local_auth/example/lib/main.dart:89— packages/local_auth/local_auth/example/lib/main.dart:89-100 | packages/local_auth/local_auth/example/lib/main.dart:131-142 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) packages/cupertino_ui/lib/src/date_picker.dart:1538— packages/cupertino_ui/lib/src/date_picker.dart:1538-1544 | packages/cupertino_ui/lib/src/date_picker.dart:1906-1912 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) packages/material_ui/lib/src/range_slider.dart:732— packages/material_ui/lib/src/range_slider.dart:732-738 | packages/material_ui/lib/src/slider.dart:809-815 — before extracting anything, compare `packages/material_ui/lib/src/range_slider.dart` and `packages/material_ui/lib/src/slider.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) packages/material_ui/lib/src/switch.dart:1009— packages/material_ui/lib/src/switch.dart:1009-1015 | packages/material_ui/lib/src/switch.dart:1021-1027 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) packages/material_ui/lib/src/text_field.dart:1636— packages/material_ui/lib/src/text_field.dart:1636-1642 | packages/material_ui/lib/src/text_field.dart:1651-1657 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) packages/pigeon/lib/src/gobject/gobject_generator.dart:713— packages/pigeon/lib/src/gobject/gobject_generator.dart:713-719 | packages/pigeon/lib/src/gobject/gobject_generator.dart:1758-1764 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart:452— packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart:452-458 | packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart:486-495 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) packages/cupertino_ui/lib/src/nav_bar.dart:686— packages/cupertino_ui/lib/src/nav_bar.dart:686-692 | packages/cupertino_ui/lib/src/search_field.dart:404-410 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polygon.dart:181— packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polygon.dart:181-187 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/polyline.dart:215-221 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) packages/material_ui/lib/src/calendar_date_picker.dart:1164— packages/material_ui/lib/src/calendar_date_picker.dart:1164-1170 | packages/material_ui/lib/src/date_picker.dart:2661-2667 — before extracting anything, compare `packages/material_ui/lib/src/calendar_date_picker.dart` and `packages/material_ui/lib/src/date_picker.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) packages/material_ui/lib/src/navigation_bar.dart:1280— packages/material_ui/lib/src/navigation_bar.dart:1280-1286 | packages/material_ui/lib/src/navigation_drawer.dart:690-696 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) packages/material_ui/lib/src/range_slider.dart:1561— packages/material_ui/lib/src/range_slider.dart:1561-1567 | packages/material_ui/lib/src/slider.dart:1628-1634 — before extracting anything, compare `packages/material_ui/lib/src/range_slider.dart` and `packages/material_ui/lib/src/slider.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) packages/pigeon/lib/src/kotlin/kotlin_generator.dart:1495— packages/pigeon/lib/src/kotlin/kotlin_generator.dart:1495-1501 | packages/pigeon/lib/src/swift/swift_generator.dart:2182-2188 — `packages/pigeon/lib/src/kotlin/kotlin_generator.dart` and `packages/pigeon/lib/src/swift/swift_generator.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 78 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (7 lines × 2) packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:214— packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:214-220 | packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart:223-229 — before extracting anything, compare `packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart` and `packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) packages/video_player/video_player/lib/video_player.dart:1227— packages/video_player/video_player/lib/video_player.dart:1227-1233 | packages/video_player/video_player_android/example/lib/mini_controller.dart:436-442 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (7 lines × 2) packages/cupertino_ui/lib/src/segmented_control.dart:231— packages/cupertino_ui/lib/src/segmented_control.dart:231-237 | REDACTED:565-571 — before extracting anything, compare `packages/cupertino_ui/lib/src/segmented_control.dart` and `REDACTED` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/ProxyApiRegistrar.java:82— packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/ProxyApiRegistrar.java:82-88 | packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/ProxyApiRegistrar.java:39-45 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind `runnable` to `FlutterMethodRunnable` in one and `Runnable` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (7 lines × 2) packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/CirclesController.java:83— packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/CirclesController.java:83-89 | packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/TileOverlaysController.java:90-96 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/GroundOverlaysController.java:122— packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/GroundOverlaysController.java:122-129 | packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/MarkersController.java:303-309 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) packages/go_router/example/lib/others/custom_stateful_shell_route.dart:614— packages/go_router/example/lib/others/custom_stateful_shell_route.dart:614-620 | packages/go_router/example/lib/stateful_shell_route.dart:210-216 — before extracting anything, compare `packages/go_router/example/lib/others/custom_stateful_shell_route.dart` and `packages/go_router/example/lib/stateful_shell_route.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) packages/cupertino_ui/example/lib/activity_indicator/cupertino_activity_indicator.0.dart:15— packages/cupertino_ui/example/lib/activity_indicator/cupertino_activity_indicator.0.dart:15-21 | packages/cupertino_ui/example/lib/activity_indicator/cupertino_linear_activity_indicator.0.dart:15-21 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) packages/cupertino_ui/example/lib/context_menu/cupertino_context_menu.0.dart:15— packages/cupertino_ui/example/lib/context_menu/cupertino_context_menu.0.dart:15-21 | packages/cupertino_ui/example/lib/context_menu/cupertino_context_menu.1.dart:28-34 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) packages/cupertino_ui/example/lib/scrollbar/cupertino_scrollbar.0.dart:15— packages/cupertino_ui/example/lib/scrollbar/cupertino_scrollbar.0.dart:15-21 | packages/cupertino_ui/example/lib/scrollbar/cupertino_scrollbar.1.dart:15-21 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) packages/cupertino_ui/example/lib/search_field/cupertino_search_field.0.dart:15— packages/cupertino_ui/example/lib/search_field/cupertino_search_field.0.dart:15-21 | packages/cupertino_ui/example/lib/search_field/cupertino_search_field.1.dart:15-21 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) packages/cupertino_ui/example/lib/segmented_control/cupertino_segmented_control.0.dart:23— packages/cupertino_ui/example/lib/segmented_control/cupertino_segmented_control.0.dart:23-29 | packages/cupertino_ui/example/lib/segmented_control/cupertino_sliding_segmented_control.0.dart:23-29 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) packages/go_router_builder/example/lib/shell_route_with_keys_example.dart:58— packages/go_router_builder/example/lib/shell_route_with_keys_example.dart:58-64 | packages/go_router_builder/example/lib/shell_route_with_observers_example.dart:61-67 — before extracting anything, compare `packages/go_router_builder/example/lib/shell_route_with_keys_example.dart` and `packages/go_router_builder/example/lib/shell_route_with_observers_example.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Sync-over-async blocking packages/metrics_center/lib/src/google_benchmark.dart:38— `parse` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking packages/web_benchmarks/lib/src/browser.dart:76— `launch` is async and calls runSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/analyze_command.dart:371— `_runCognitiveComplexityForPackage` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/common/package_command.dart:246— `gitDir` is async and calls resolveSymbolicLinksSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/common/xcode.dart:32— `runXcodeBuild` is async and calls deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/coverage_check_command.dart:36— `initializeRun` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/coverage_check_command.dart:106— `_runCoverageAndParse` is async and calls deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/create_all_packages_app_command.dart:138— `_replaceWithLegacy` is async and calls listSync, deleteSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/create_all_packages_app_command.dart:217— `_updateAppGradle` is async and calls listSync, readAsStringSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/create_all_packages_app_command.dart:286— `_genPubspecWithAllPlugins` is async and calls writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/federation_safety_check_command.dart:186— `_packageWillBePublished` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/firebase_test_lab_command.dart:333— `_testsContainDartIntegrationTestRunner` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/format_command.dart:364— `_getFilteredFilePaths` is async and calls readAsLinesSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/format_command.dart:431— `_downloadJavaFormatterIfNecessary` is async and calls writeAsBytesSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/format_command.dart:443— `_downloadKotlinFormatterIfNecessary` is async and calls writeAsBytesSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/license_check_command.dart:286— `_checkLicenseFiles` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/license_check_command.dart:344— `_getSubmoduleDirectories` is async and calls readAsLinesSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/make_deps_path_based_command.dart:152— `_addDependencyOverridesIfNecessary` is async and calls readAsStringSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/native_test_command.dart:237— `_testAndroid` is async and calls readAsLinesSync, listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/native_test_command.dart:596— `_runGoogleTestTests` is async and calls listSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/publish_command.dart:187— `getPackagesToProcess` is async and calls readAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/remove_dev_dependencies_command.dart:34— `runForPackage` is async and calls readAsStringSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/test_dart_fixes_command.dart:75— `_createTestDirectory` is async and calls listSync, createSync, copySync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/update_dependency_command.dart:200— `_runForPubDependency` is async and calls readAsStringSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Sync-over-async blocking script/tool/lib/src/update_dependency_command.dart:270— `_runForAndroidDependencyOnExamples` is async and calls readAsStringSync, writeAsStringSync — a blocking call inside async code stalls the isolate's event loop — every other event, on Flutter the next frame, waits for as long as it runs.
Duplicated block (8 lines × 2) packages/cupertino_ui/lib/src/app.dart:654— packages/cupertino_ui/lib/src/app.dart:654-661 | packages/material_ui/lib/src/app.dart:1059-1066 — before extracting anything, compare `packages/cupertino_ui/lib/src/app.dart` and `packages/material_ui/lib/src/app.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) packages/cupertino_ui/lib/src/date_picker.dart:1476— packages/cupertino_ui/lib/src/date_picker.dart:1476-1483 | packages/cupertino_ui/lib/src/date_picker.dart:1535-1542 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) packages/material_ui/lib/src/carousel.dart:1175— packages/material_ui/lib/src/carousel.dart:1175-1183 | packages/material_ui/lib/src/carousel.dart:1195-1202 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) packages/material_ui/lib/src/range_slider.dart:1819— packages/material_ui/lib/src/range_slider.dart:1819-1826 | packages/material_ui/lib/src/slider.dart:1820-1827 — before extracting anything, compare `packages/material_ui/lib/src/range_slider.dart` and `packages/material_ui/lib/src/slider.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) packages/material_ui/lib/src/selectable_text.dart:710— packages/material_ui/lib/src/selectable_text.dart:710-717 | packages/material_ui/lib/src/selectable_text.dart:723-730 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) packages/pigeon/lib/src/java/java_generator.dart:822— packages/pigeon/lib/src/java/java_generator.dart:822-829 | packages/pigeon/lib/src/kotlin/kotlin_generator.dart:784-791 — `packages/pigeon/lib/src/java/java_generator.dart` and `packages/pigeon/lib/src/kotlin/kotlin_generator.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (8 lines × 2) packages/pigeon/lib/src/swift/swift_generator.dart:2195— packages/pigeon/lib/src/swift/swift_generator.dart:2195-2202 | packages/pigeon/lib/src/swift/swift_generator.dart:2204-2211 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1904— packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1904-1911 | packages/two_dimensional_scrollables/lib/src/table_view/table.dart:2034-2041 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) packages/camera/camera_android/lib/src/android_camera.dart:226— packages/camera/camera_android/lib/src/android_camera.dart:226-233 | packages/camera/camera_platform_interface/lib/src/method_channel/method_channel_camera.dart:277-284 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8 lines × 2) packages/camera/camera_android/lib/src/android_camera.dart:335— packages/camera/camera_android/lib/src/android_camera.dart:335-342 | packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart:352-359 — before extracting anything, compare `packages/camera/camera_android/lib/src/android_camera.dart` and `packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) packages/cupertino_ui/lib/src/nav_bar.dart:694— packages/cupertino_ui/lib/src/nav_bar.dart:694-701 | packages/material_ui/lib/src/app_bar.dart:842-849 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8 lines × 2) packages/cupertino_ui/lib/src/page_scaffold.dart:315— packages/cupertino_ui/lib/src/page_scaffold.dart:315-322 | packages/material_ui/lib/src/scaffold.dart:3606-3613 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8 lines × 2) packages/cupertino_ui/lib/src/switch.dart:582— packages/cupertino_ui/lib/src/switch.dart:582-589 | packages/material_ui/lib/src/switch.dart:798-805 — before extracting anything, compare `packages/cupertino_ui/lib/src/switch.dart` and `packages/material_ui/lib/src/switch.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) packages/material_ui/lib/src/banner.dart:340— packages/material_ui/lib/src/banner.dart:340-347 | packages/material_ui/lib/src/snack_bar.dart:632-639 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8 lines × 2) packages/material_ui/lib/src/range_slider_parts.dart:1569— packages/material_ui/lib/src/range_slider_parts.dart:1569-1576 | packages/material_ui/lib/src/slider_parts.dart:892-899 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:2278— packages/two_dimensional_scrollables/lib/src/table_view/table.dart:2278-2285 | packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart:694-701 — before extracting anything, compare `packages/two_dimensional_scrollables/lib/src/table_view/table.dart` and `packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) packages/cupertino_ui/lib/src/magnifier.dart:131— packages/cupertino_ui/lib/src/magnifier.dart:131-138 | packages/material_ui/lib/src/magnifier.dart:113-120 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8 lines × 2) packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java:200— packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java:200-207 | packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java:190-197 — before extracting anything, compare `packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java` and `packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java:209— packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java:209-216 | packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java:199-206 — before extracting anything, compare `packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java` and `packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 2) packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/autofocus/FocusMode.java:22— packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/autofocus/FocusMode.java:22-29 | packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/exposurelock/ExposureMode.java:31-38 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 2) packages/camera/camera_android/example/lib/camera_controller.dart:205— packages/camera/camera_android/example/lib/camera_controller.dart:205-212 | packages/camera/camera_avfoundation/example/lib/camera_controller.dart:220-227 — before extracting anything, compare `packages/camera/camera_android/example/lib/camera_controller.dart` and `packages/camera/camera_avfoundation/example/lib/camera_controller.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) packages/go_router_builder/example/lib/json_example.dart:53— packages/go_router_builder/example/lib/json_example.dart:53-60 | packages/go_router_builder/example/lib/json_nested_example.dart:53-61 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8 lines × 2) packages/go_router_builder/example/lib/json_example.dart:72— packages/go_router_builder/example/lib/json_example.dart:72-79 | packages/go_router_builder/example/lib/json_nested_example.dart:74-81 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8 lines × 2) packages/go_router_builder/example/lib/shell_route_with_keys_example.dart:135— packages/go_router_builder/example/lib/shell_route_with_keys_example.dart:135-142 | packages/go_router_builder/example/lib/shell_route_with_observers_example.dart:138-145 — before extracting anything, compare `packages/go_router_builder/example/lib/shell_route_with_keys_example.dart` and `packages/go_router_builder/example/lib/shell_route_with_observers_example.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) packages/interactive_media_ads/example/lib/readme_example.dart:185— packages/interactive_media_ads/example/lib/readme_example.dart:185-192 | packages/interactive_media_ads/example/lib/video_ad_example_screen.dart:193-200 — before extracting anything, compare `packages/interactive_media_ads/example/lib/readme_example.dart` and `packages/interactive_media_ads/example/lib/video_ad_example_screen.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) packages/go_router_builder/lib/src/route_config.dart:490— packages/go_router_builder/lib/src/route_config.dart:490-494 | packages/go_router_builder/lib/src/route_config.dart:577-581 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) packages/material_ui/lib/src/card_theme.dart:201— packages/material_ui/lib/src/card_theme.dart:201-205 | packages/material_ui/lib/src/card_theme.dart:329-333 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) packages/material_ui/lib/src/menu_anchor.dart:3698— packages/material_ui/lib/src/menu_anchor.dart:3698-3702 | packages/material_ui/lib/src/menu_anchor.dart:3910-3914 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) packages/material_ui/lib/src/search_anchor.dart:873— packages/material_ui/lib/src/search_anchor.dart:873-877 | packages/material_ui/lib/src/search_anchor.dart:888-892 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) packages/pigeon/lib/src/objc/objc_generator.dart:735— packages/pigeon/lib/src/objc/objc_generator.dart:735-739 | packages/pigeon/lib/src/objc/objc_generator.dart:1129-1133 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) packages/camera/camera_android/lib/src/android_camera.dart:178— packages/camera/camera_android/lib/src/android_camera.dart:178-182 | packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart:180-184 — before extracting anything, compare `packages/camera/camera_android/lib/src/android_camera.dart` and `packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) packages/camera/camera_android/lib/src/android_camera.dart:211— packages/camera/camera_android/lib/src/android_camera.dart:211-215 | packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart:213-217 — before extracting anything, compare `packages/camera/camera_android/lib/src/android_camera.dart` and `packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) packages/cupertino_ui/lib/src/radio.dart:283— packages/cupertino_ui/lib/src/radio.dart:283-287 | packages/material_ui/lib/src/radio.dart:450-454 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (5 lines × 2) packages/cupertino_ui/lib/src/segmented_control.dart:219— packages/cupertino_ui/lib/src/segmented_control.dart:219-223 | REDACTED:553-557 — before extracting anything, compare `packages/cupertino_ui/lib/src/segmented_control.dart` and `REDACTED` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) packages/cupertino_ui/lib/src/segmented_control.dart:225— packages/cupertino_ui/lib/src/segmented_control.dart:225-229 | REDACTED:559-563 — before extracting anything, compare `packages/cupertino_ui/lib/src/segmented_control.dart` and `REDACTED` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) packages/material_ui/lib/src/date_picker.dart:3449— packages/material_ui/lib/src/date_picker.dart:3449-3453 | packages/material_ui/lib/src/input_date_picker_form_field.dart:214-218 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (5 lines × 2) packages/material_ui/lib/src/range_slider.dart:748— packages/material_ui/lib/src/range_slider.dart:748-752 | packages/material_ui/lib/src/slider.dart:836-840 — before extracting anything, compare `packages/material_ui/lib/src/range_slider.dart` and `packages/material_ui/lib/src/slider.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) packages/material_ui/lib/src/range_slider.dart:1555— packages/material_ui/lib/src/range_slider.dart:1555-1559 | packages/material_ui/lib/src/slider.dart:1622-1626 — before extracting anything, compare `packages/material_ui/lib/src/range_slider.dart` and `packages/material_ui/lib/src/slider.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) packages/material_ui/lib/src/range_slider_parts.dart:1398— packages/material_ui/lib/src/range_slider_parts.dart:1398-1402 | packages/material_ui/lib/src/slider_parts.dart:1324-1328 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) packages/material_ui/lib/src/range_slider_parts.dart:1522— packages/material_ui/lib/src/range_slider_parts.dart:1522-1526 | packages/material_ui/lib/src/slider_parts.dart:845-849 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:169— packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:169-173 | packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart:173-177 — before extracting anything, compare `packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart` and `packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:175— packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:175-179 | packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart:179-183 — before extracting anything, compare `packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart` and `packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:181— packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:181-185 | packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart:185-189 — before extracting anything, compare `packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart` and `packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:187— packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:187-191 | packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart:191-195 — before extracting anything, compare `packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart` and `packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) packages/cupertino_ui/lib/src/icon_theme_data.dart:60— packages/cupertino_ui/lib/src/icon_theme_data.dart:60-64 | packages/material_ui/lib/src/tabs.dart:232-236 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (5 lines × 2) packages/shared_preferences/shared_preferences_android/lib/src/shared_preferences_android.dart:75— packages/shared_preferences/shared_preferences_android/lib/src/shared_preferences_android.dart:75-79 | packages/shared_preferences/shared_preferences_foundation/lib/src/shared_preferences_foundation.dart:62-66 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (5 lines × 2) packages/material_ui/lib/src/floating_action_button.dart:638— packages/material_ui/lib/src/floating_action_button.dart:638-642 | packages/material_ui/lib/src/floating_action_button_theme.dart:314-318 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (5 lines × 2) packages/pigeon/lib/src/gobject/gobject_generator.dart:1197— packages/pigeon/lib/src/gobject/gobject_generator.dart:1197-1201 | packages/pigeon/lib/src/gobject/gobject_generator.dart:1295-1299 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:193— packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:193-197 | packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart:197-201 — before extracting anything, compare `packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart` and `packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java:184— packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java:184-188 | packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java:274-278 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java:184` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) packages/cupertino_ui/lib/src/text_field.dart:1078— packages/cupertino_ui/lib/src/text_field.dart:1078-1088 | packages/material_ui/lib/src/text_field.dart:1081-1091 — before extracting anything, compare `packages/cupertino_ui/lib/src/text_field.dart` and `packages/material_ui/lib/src/text_field.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) packages/cupertino_ui/lib/src/text_field.dart:1221— packages/cupertino_ui/lib/src/text_field.dart:1221-1231 | packages/material_ui/lib/src/text_field.dart:1342-1352 — before extracting anything, compare `packages/cupertino_ui/lib/src/text_field.dart` and `packages/material_ui/lib/src/text_field.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) packages/file_selector/file_selector_platform_interface/lib/src/method_channel/method_channel_file_selector.dart:20— packages/file_selector/file_selector_platform_interface/lib/src/method_channel/method_channel_file_selector.dart:20-30 | packages/file_selector/file_selector_platform_interface/lib/src/method_channel/method_channel_file_selector.dart:38-48 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) packages/material_ui/lib/src/calendar_date_picker.dart:921— packages/material_ui/lib/src/calendar_date_picker.dart:921-931 | packages/material_ui/lib/src/date_picker.dart:2328-2338 — before extracting anything, compare `packages/material_ui/lib/src/calendar_date_picker.dart` and `packages/material_ui/lib/src/date_picker.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) packages/material_ui/lib/src/checkbox.dart:455— packages/material_ui/lib/src/checkbox.dart:455-465 | packages/material_ui/lib/src/radio.dart:616-626 — before extracting anything, compare `packages/material_ui/lib/src/checkbox.dart` and `packages/material_ui/lib/src/radio.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) packages/material_ui/lib/src/checkbox.dart:547— packages/material_ui/lib/src/checkbox.dart:547-557 | packages/material_ui/lib/src/radio.dart:650-660 — before extracting anything, compare `packages/material_ui/lib/src/checkbox.dart` and `packages/material_ui/lib/src/radio.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) packages/material_ui/lib/src/dropdown_menu.dart:1563— packages/material_ui/lib/src/dropdown_menu.dart:1563-1573 | packages/material_ui/lib/src/dropdown_menu.dart:1607-1617 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) packages/material_ui/lib/src/input_decorator.dart:6097— packages/material_ui/lib/src/input_decorator.dart:6097-6107 | packages/material_ui/lib/src/input_decorator.dart:6111-6121 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) packages/material_ui/lib/src/radio_list_tile.dart:689— packages/material_ui/lib/src/radio_list_tile.dart:689-699 | packages/material_ui/lib/src/radio_list_tile.dart:710-720 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) packages/material_ui/lib/src/range_slider.dart:1968— packages/material_ui/lib/src/range_slider.dart:1968-1978 | packages/material_ui/lib/src/range_slider.dart:2056-2066 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) packages/pigeon/lib/src/gobject/gobject_generator.dart:456— packages/pigeon/lib/src/gobject/gobject_generator.dart:456-466 | packages/pigeon/lib/src/gobject/gobject_generator.dart:1759-1769 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) packages/pigeon/lib/src/java/java_generator.dart:519— packages/pigeon/lib/src/java/java_generator.dart:519-529 | packages/pigeon/lib/src/java/java_generator.dart:535-545 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) packages/pigeon/lib/src/kotlin/kotlin_generator.dart:609— packages/pigeon/lib/src/kotlin/kotlin_generator.dart:609-619 | packages/pigeon/lib/src/swift/swift_generator.dart:1277-1287 — `packages/pigeon/lib/src/kotlin/kotlin_generator.dart` and `packages/pigeon/lib/src/swift/swift_generator.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 78 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (11 lines × 2) packages/pigeon/lib/src/objc/objc_generator.dart:176— packages/pigeon/lib/src/objc/objc_generator.dart:176-186 | packages/pigeon/lib/src/objc/objc_generator.dart:466-476 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) packages/pigeon/lib/src/objc/objc_generator.dart:235— packages/pigeon/lib/src/objc/objc_generator.dart:235-245 | packages/pigeon/lib/src/objc/objc_generator.dart:525-535 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) packages/pigeon/lib/src/objc/objc_generator.dart:339— packages/pigeon/lib/src/objc/objc_generator.dart:339-349 | packages/pigeon/lib/src/objc/objc_generator.dart:376-386 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) packages/vector_graphics/lib/src/html_render_vector_graphics.dart:125— packages/vector_graphics/lib/src/html_render_vector_graphics.dart:125-135 | packages/vector_graphics/lib/src/render_vector_graphic.dart:280-290 — before extracting anything, compare `packages/vector_graphics/lib/src/html_render_vector_graphics.dart` and `packages/vector_graphics/lib/src/render_vector_graphic.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) packages/cupertino_ui/lib/src/switch.dart:1432— packages/cupertino_ui/lib/src/switch.dart:1432-1442 | packages/material_ui/lib/src/switch.dart:1856-1866 — before extracting anything, compare `packages/cupertino_ui/lib/src/switch.dart` and `packages/material_ui/lib/src/switch.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) packages/video_player/video_player/lib/video_player.dart:100— packages/video_player/video_player/lib/video_player.dart:100-110 | packages/video_player/video_player_platform_interface/lib/video_player_platform_interface.dart:692-702 — before extracting anything, compare `packages/video_player/video_player/lib/video_player.dart` and `packages/video_player/video_player_platform_interface/lib/video_player_platform_interface.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) packages/video_player/video_player/lib/video_player.dart:1616— packages/video_player/video_player/lib/video_player.dart:1616-1626 | packages/video_player/video_player_platform_interface/lib/video_player_platform_interface.dart:782-792 — before extracting anything, compare `packages/video_player/video_player/lib/video_player.dart` and `packages/video_player/video_player_platform_interface/lib/video_player_platform_interface.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) packages/in_app_purchase/in_app_purchase_android/android/src/main/java/io/flutter/plugins/inapppurchase/MethodCallHandlerImpl.java:123— packages/in_app_purchase/in_app_purchase_android/android/src/main/java/io/flutter/plugins/inapppurchase/MethodCallHandlerImpl.java:123-133 | packages/in_app_purchase/in_app_purchase_android/android/src/main/java/io/flutter/plugins/inapppurchase/MethodCallHandlerImpl.java:191-201 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/in_app_purchase/in_app_purchase_android/android/src/main/java/io/flutter/plugins/inapppurchase/MethodCallHandlerImpl.java:123` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `rawCallback` to `Function1<? super Result<PlatformBillingResult>, Unit>` in one and `Function1<? super Result<@NotNull PlatformInAppMessageResult>, Unit>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (11 lines × 2) packages/camera/camera_avfoundation/darwin/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:452— packages/camera/camera_avfoundation/darwin/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:452-464 | packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/VideoPlayerPlugin.swift:335-345 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `packages/camera/camera_avfoundation/darwin/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:452` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) packages/go_router/example/lib/others/custom_stateful_shell_route.dart:397— packages/go_router/example/lib/others/custom_stateful_shell_route.dart:397-407 | packages/go_router/example/lib/stateful_shell_route.dart:267-277 — before extracting anything, compare `packages/go_router/example/lib/others/custom_stateful_shell_route.dart` and `packages/go_router/example/lib/stateful_shell_route.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.0.dart:38— packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.0.dart:38-48 | packages/material_ui/example/lib/scaffold/scaffold_state.show_bottom_sheet.0.dart:36-46 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (11 lines × 2) packages/material_ui/example/lib/icon_button/icon_button.4.dart:66— packages/material_ui/example/lib/icon_button/icon_button.4.dart:66-76 | packages/material_ui/example/lib/icon_button/icon_button.4.dart:115-125 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) packages/cupertino_ui/lib/src/slider.dart:630— packages/cupertino_ui/lib/src/slider.dart:630-635 | packages/material_ui/lib/src/slider.dart:2029-2034 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (6 lines × 2) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/advanced_marker.dart:144— packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/advanced_marker.dart:144-149 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/marker.dart:364-369 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) packages/material_ui/lib/src/toggle_buttons.dart:898— packages/material_ui/lib/src/toggle_buttons.dart:898-903 | packages/material_ui/lib/src/toggle_buttons_theme.dart:243-248 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) packages/material_ui/tool/gen_defaults/templates/input_decorator_template.dart:151— packages/material_ui/tool/gen_defaults/templates/input_decorator_template.dart:151-156 | packages/material_ui/tool/gen_defaults/templates/input_decorator_template.dart:175-180 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) packages/vector_graphics_codec/lib/vector_graphics_codec.dart:947— packages/vector_graphics_codec/lib/vector_graphics_codec.dart:947-952 | packages/vector_graphics_codec/lib/vector_graphics_codec.dart:958-963 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) packages/vector_graphics_compiler/lib/src/svg/resolver.dart:55— packages/vector_graphics_compiler/lib/src/svg/resolver.dart:55-60 | packages/vector_graphics_compiler/lib/src/svg/resolver.dart:311-316 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) packages/camera/camera_android/lib/src/android_camera.dart:263— packages/camera/camera_android/lib/src/android_camera.dart:263-268 | packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart:272-277 — before extracting anything, compare `packages/camera/camera_android/lib/src/android_camera.dart` and `packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) packages/file_selector/file_selector_linux/lib/file_selector_linux.dart:97— packages/file_selector/file_selector_linux/lib/file_selector_linux.dart:97-102 | packages/file_selector/file_selector_macos/lib/file_selector_macos.dart:100-105 — before extracting anything, compare `packages/file_selector/file_selector_linux/lib/file_selector_linux.dart` and `packages/file_selector/file_selector_macos/lib/file_selector_macos.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) packages/material_ui/lib/src/floating_action_button.dart:671— packages/material_ui/lib/src/floating_action_button.dart:671-676 | packages/material_ui/lib/src/popup_menu.dart:1850-1855 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) packages/material_ui/lib/src/range_slider.dart:1548— packages/material_ui/lib/src/range_slider.dart:1548-1553 | packages/material_ui/lib/src/slider.dart:1615-1620 — before extracting anything, compare `packages/material_ui/lib/src/range_slider.dart` and `packages/material_ui/lib/src/slider.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:101— packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:101-106 | packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart:105-110 — before extracting anything, compare `packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart` and `packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:108— packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:108-113 | packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart:112-117 — before extracting anything, compare `packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart` and `packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) packages/video_player/video_player_android/lib/src/android_video_player.dart:171— packages/video_player/video_player_android/lib/src/android_video_player.dart:171-176 | packages/video_player/video_player_avfoundation/lib/src/avfoundation_video_player.dart:146-151 — before extracting anything, compare `packages/video_player/video_player_android/lib/src/android_video_player.dart` and `packages/video_player/video_player_avfoundation/lib/src/avfoundation_video_player.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) packages/webview_flutter/webview_flutter_wkwebview/lib/src/legacy/wkwebview_cookie_manager.dart:42— packages/webview_flutter/webview_flutter_wkwebview/lib/src/legacy/wkwebview_cookie_manager.dart:42-47 | packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_webview_cookie_manager.dart:66-71 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (6 lines × 2) packages/cupertino_ui/lib/src/localizations.dart:489— packages/cupertino_ui/lib/src/localizations.dart:489-494 | packages/material_ui/lib/src/material_localizations.dart:1171-1176 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (6 lines × 2) packages/material_ui/lib/src/range_slider.dart:716— packages/material_ui/lib/src/range_slider.dart:716-721 | packages/material_ui/lib/src/slider.dart:761-766 — before extracting anything, compare `packages/material_ui/lib/src/range_slider.dart` and `packages/material_ui/lib/src/slider.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/CircleController.java:17— packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/CircleController.java:17-22 | packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/PolylineController.java:20-25 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/CirclesController.java:23— packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/CirclesController.java:23-28 | packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/PolygonsController.java:23-28 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/CirclesController.java:69— packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/CirclesController.java:69-74 | packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/PolygonsController.java:69-74 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) packages/camera/camera_avfoundation/darwin/camera_avfoundation/Sources/camera_avfoundation/CameraPlugin.swift:89— packages/camera/camera_avfoundation/darwin/camera_avfoundation/Sources/camera_avfoundation/CameraPlugin.swift:89-94 | packages/camera/camera_avfoundation/darwin/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:136-141 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) packages/go_router/example/lib/named_routes.dart:135— packages/go_router/example/lib/named_routes.dart:135-141 | packages/go_router/example/lib/others/extra_param.dart:109-114 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (6 lines × 2) packages/google_sign_in/google_sign_in_android/example/lib/main.dart:41— packages/google_sign_in/google_sign_in_android/example/lib/main.dart:41-48 | packages/google_sign_in/google_sign_in_ios/example/lib/main.dart:41-46 — before extracting anything, compare `packages/google_sign_in/google_sign_in_android/example/lib/main.dart` and `packages/google_sign_in/google_sign_in_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:258— packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:258-263 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart:249-254 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:631— packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:631-636 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart:576-581 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/main.dart:535— packages/webview_flutter/webview_flutter_android/example/lib/main.dart:535-540 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:529-534 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/cupertino_ui/lib/src/date_picker.dart:803— packages/cupertino_ui/lib/src/date_picker.dart:803-811 | packages/cupertino_ui/lib/src/date_picker.dart:1410-1418 | packages/cupertino_ui/lib/src/date_picker.dart:1847-1855 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart:625— packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart:625-633 | packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart:636-644 | packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart:647-655 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) packages/material_ui/lib/src/input_decorator.dart:2651— packages/material_ui/lib/src/input_decorator.dart:2651-2659 | packages/material_ui/lib/src/input_decorator.dart:2664-2672 | packages/material_ui/lib/src/input_decorator.dart:2676-2684 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) packages/camera/camera_android/lib/src/android_camera.dart:188— packages/camera/camera_android/lib/src/android_camera.dart:188-196 | packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart:191-199 | packages/camera/camera_windows/lib/camera_windows.dart:189-197 — before extracting anything, compare `packages/camera/camera_android/lib/src/android_camera.dart` and `packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/material_ui/lib/src/search_anchor.dart:1759— packages/material_ui/lib/src/search_anchor.dart:1759-1767 | packages/material_ui/lib/src/text_field.dart:928-936 | packages/material_ui/lib/src/text_form_field.dart:347-355 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (9 lines × 3) packages/vector_graphics/lib/src/html_render_vector_graphics.dart:62— packages/vector_graphics/lib/src/html_render_vector_graphics.dart:62-70 | packages/vector_graphics/lib/src/render_vector_graphic.dart:142-150 | packages/vector_graphics/lib/src/render_vector_graphic.dart:351-359 — before extracting anything, compare `packages/vector_graphics/lib/src/html_render_vector_graphics.dart` and `packages/vector_graphics/lib/src/render_vector_graphic.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/vector_graphics_compiler/lib/src/svg/clipping_optimizer.dart:263— packages/vector_graphics_compiler/lib/src/svg/clipping_optimizer.dart:263-271 | packages/vector_graphics_compiler/lib/src/svg/masking_optimizer.dart:360-368 | packages/vector_graphics_compiler/lib/src/svg/overdraw_optimizer.dart:369-377 — before extracting anything, compare `packages/vector_graphics_compiler/lib/src/svg/clipping_optimizer.dart` and `packages/vector_graphics_compiler/lib/src/svg/masking_optimizer.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:540— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:540-548 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:540-548 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:540-548 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:550— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:550-558 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:550-558 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:550-558 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:584— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:584-592 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:584-592 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:584-592 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:594— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:594-602 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:594-602 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:594-602 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:604— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:604-612 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:604-612 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:604-612 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:614— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:614-622 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:614-622 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:614-622 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapsPlugin.swift:9— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapsPlugin.swift:9-17 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapsPlugin.swift:9-17 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapsPlugin.swift:9-17 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapsPlugin.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapsPlugin.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:16— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:16-24 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift:16-24 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GroundOverlayController.swift:16-24 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:226— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:226-234 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:226-234 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:226-234 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:236— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:236-244 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:236-244 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:236-244 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:246— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:246-254 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:246-254 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:246-254 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/in_app_purchase/in_app_purchase/example/lib/main.dart:247— packages/in_app_purchase/in_app_purchase/example/lib/main.dart:247-255 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:439-447 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:245-253 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase/example/lib/main.dart` and `packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/local_auth/local_auth_android/example/lib/main.dart:184— packages/local_auth/local_auth_android/example/lib/main.dart:184-192 | packages/local_auth/local_auth_darwin/example/lib/main.dart:184-192 | packages/local_auth/local_auth_windows/example/lib/main.dart:132-140 — before extracting anything, compare `packages/local_auth/local_auth_android/example/lib/main.dart` and `packages/local_auth/local_auth_darwin/example/lib/main.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/webview_flutter/webview_flutter/example/lib/main.dart:529— packages/webview_flutter/webview_flutter/example/lib/main.dart:529-537 | packages/webview_flutter/webview_flutter_android/example/lib/main.dart:660-668 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:607-615 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/file_selector/file_selector/example/lib/readme_standalone_excerpts.dart:27— packages/file_selector/file_selector/example/lib/readme_standalone_excerpts.dart:27-35 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/readme_excerpts.dart:38-46 | packages/local_auth/local_auth/example/lib/readme_excerpts.dart:41-49 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (9 lines × 3) packages/local_auth/local_auth_android/example/lib/main.dart:32— packages/local_auth/local_auth_android/example/lib/main.dart:32-40 | packages/local_auth/local_auth_darwin/example/lib/main.dart:32-40 | packages/local_auth/local_auth_windows/example/lib/main.dart:32-40 — before extracting anything, compare `packages/local_auth/local_auth_android/example/lib/main.dart` and `packages/local_auth/local_auth_darwin/example/lib/main.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) packages/material_ui/example/lib/switch/switch.0.dart:15— packages/material_ui/example/lib/switch/switch.0.dart:15-23 | packages/material_ui/example/lib/switch/switch.1.dart:15-23 | packages/material_ui/example/lib/switch/switch.2.dart:15-23 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (18 lines × 2) packages/animations/lib/src/shared_axis_transition.dart:385— packages/animations/lib/src/shared_axis_transition.dart:385-402 | packages/animations/lib/src/shared_axis_transition.dart:407-424 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) packages/camera/camera/lib/src/camera_controller.dart:206— packages/camera/camera/lib/src/camera_controller.dart:206-223 | packages/camera/camera_android_camerax/example/lib/camera_controller.dart:199-216 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (18 lines × 2) packages/cupertino_ui/lib/src/app.dart:635— packages/cupertino_ui/lib/src/app.dart:635-652 | packages/material_ui/lib/src/app.dart:1040-1057 — before extracting anything, compare `packages/cupertino_ui/lib/src/app.dart` and `packages/material_ui/lib/src/app.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 2) packages/cupertino_ui/lib/src/date_picker.dart:1560— packages/cupertino_ui/lib/src/date_picker.dart:1560-1577 | packages/cupertino_ui/lib/src/date_picker.dart:1928-1945 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) packages/cupertino_ui/lib/src/radio.dart:600— packages/cupertino_ui/lib/src/radio.dart:600-617 | packages/cupertino_ui/lib/src/radio.dart:628-645 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) packages/cupertino_ui/lib/src/switch.dart:1352— packages/cupertino_ui/lib/src/switch.dart:1352-1369 | packages/material_ui/lib/src/switch.dart:1771-1788 — before extracting anything, compare `packages/cupertino_ui/lib/src/switch.dart` and `packages/material_ui/lib/src/switch.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 2) packages/image_picker/image_picker_ios/lib/image_picker_ios.dart:88— packages/image_picker/image_picker_ios/lib/image_picker_ios.dart:88-105 | packages/image_picker/image_picker_ios/lib/image_picker_ios.dart:287-304 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) packages/material_ui/lib/src/bottom_navigation_bar.dart:1009— packages/material_ui/lib/src/bottom_navigation_bar.dart:1009-1026 | packages/material_ui/lib/src/bottom_navigation_bar.dart:1040-1057 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) packages/material_ui/lib/src/checkbox_list_tile.dart:552— packages/material_ui/lib/src/checkbox_list_tile.dart:552-569 | packages/material_ui/lib/src/checkbox_list_tile.dart:573-590 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) packages/material_ui/lib/src/switch_list_tile.dart:586— packages/material_ui/lib/src/switch_list_tile.dart:586-603 | packages/material_ui/lib/src/switch_list_tile.dart:615-632 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) packages/material_ui/lib/src/tabs.dart:1725— packages/material_ui/lib/src/tabs.dart:1725-1742 | packages/material_ui/lib/src/tabs.dart:2351-2368 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) packages/material_ui/lib/src/text_field.dart:1681— packages/material_ui/lib/src/text_field.dart:1681-1698 | packages/material_ui/lib/src/text_field.dart:1701-1718 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) packages/vector_graphics_compiler/lib/src/svg/clipping_optimizer.dart:226— packages/vector_graphics_compiler/lib/src/svg/clipping_optimizer.dart:226-243 | packages/vector_graphics_compiler/lib/src/svg/masking_optimizer.dart:324-341 — before extracting anything, compare `packages/vector_graphics_compiler/lib/src/svg/clipping_optimizer.dart` and `packages/vector_graphics_compiler/lib/src/svg/masking_optimizer.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 2) packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/FallbackStrategyProxyApi.java:46— packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/FallbackStrategyProxyApi.java:46-63 | packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/QualitySelectorProxyApi.java:62-79 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/Convert.java:148— packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/Convert.java:148-165 | packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/Convert.java:285-302 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/Convert.java:148` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/Convert.java:304` calls `IllegalArgumentException` and `packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/Convert.java:166` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (18 lines × 2) packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios/Sources/google_sign_in_ios/GoogleSignInWrappers.swift:59— packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios/Sources/google_sign_in_ios/GoogleSignInWrappers.swift:59-76 | packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios/Sources/google_sign_in_ios/GoogleSignInWrappers.swift:80-97 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios/Sources/google_sign_in_ios/GoogleSignInWrappers.swift:59` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (18 lines × 2) packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:209— packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:209-226 | packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:232-249 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:209` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `completionHandler` to `@escaping @MainActor (String?) -> Void` in one and `@escaping (String?) -> Void` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (18 lines × 2) packages/in_app_purchase/in_app_purchase/example/lib/main.dart:214— packages/in_app_purchase/in_app_purchase/example/lib/main.dart:214-231 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:406-423 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase/example/lib/main.dart` and `packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 2) packages/in_app_purchase/in_app_purchase/example/lib/main.dart:463— packages/in_app_purchase/in_app_purchase/example/lib/main.dart:463-480 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:665-682 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase/example/lib/main.dart` and `packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 2) packages/material_ui/example/lib/page_transitions_theme/page_transitions_theme.0.dart:40— packages/material_ui/example/lib/page_transitions_theme/page_transitions_theme.0.dart:40-57 | packages/material_ui/example/lib/page_transitions_theme/page_transitions_theme.1.dart:33-50 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (18 lines × 2) packages/path_provider/path_provider_foundation/example/lib/main.dart:50— packages/path_provider/path_provider_foundation/example/lib/main.dart:50-67 | packages/path_provider/path_provider_windows/example/lib/main.dart:44-61 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (18 lines × 2) packages/url_launcher/url_launcher/example/lib/main.dart:183— packages/url_launcher/url_launcher/example/lib/main.dart:183-200 | packages/url_launcher/url_launcher_android/example/lib/main.dart:211-228 — before extracting anything, compare `packages/url_launcher/url_launcher/example/lib/main.dart` and `packages/url_launcher/url_launcher_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/main.dart:709— packages/webview_flutter/webview_flutter_android/example/lib/main.dart:709-726 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:657-674 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:292— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:292-297 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:264-269 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:269-274 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:269-274 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:269-274 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:333-338 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/shared_preferences/shared_preferences_android/lib/src/shared_preferences_android.dart:81— packages/shared_preferences/shared_preferences_android/lib/src/shared_preferences_android.dart:81-86 | packages/shared_preferences/shared_preferences_foundation/lib/src/shared_preferences_foundation.dart:68-73 | packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:78-83 | packages/shared_preferences/shared_preferences_platform_interface/lib/shared_preferences_platform_interface.dart:139-144 | packages/shared_preferences/shared_preferences_web/lib/shared_preferences_web.dart:48-53 | packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart:82-87 — before extracting anything, compare `packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart` and `packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:191— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:191-196 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:192-197 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:175-180 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:175-180 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:175-180 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:175-180 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_coordinates.dart:85— packages/google_maps_flutter/google_maps_flutter/example/lib/map_coordinates.dart:85-90 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_coordinates.dart:87-92 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_coordinates.dart:91-96 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_coordinates.dart:91-96 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_coordinates.dart:91-96 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_coordinates.dart:91-96 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_coordinates.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_coordinates.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:182— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:182-187 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:182-187 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:199-204 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:199-204 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:199-204 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:199-204 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:189— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:189-194 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:189-194 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:206-211 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:206-211 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:206-211 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:206-211 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:222— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:222-227 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:222-227 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:239-244 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:239-244 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:239-244 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:239-244 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:237— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:237-242 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:237-242 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:254-259 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:254-259 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:254-259 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:254-259 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:101— packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:101-106 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:102-107 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart:102-107 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_circle.dart:102-107 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_circle.dart:102-107 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_circle.dart:102-107 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:126— packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:126-131 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:127-132 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart:127-132 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_circle.dart:127-132 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_circle.dart:127-132 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_circle.dart:127-132 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:169— packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:169-174 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:177-182 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:197-202 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:197-202 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:197-202 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:197-202 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:176— packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:176-181 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:184-189 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:204-209 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:204-209 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:204-209 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:204-209 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:209— packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:209-214 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:217-222 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:237-242 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:237-242 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:237-242 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:237-242 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:224— packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:224-229 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:232-237 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:252-257 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:252-257 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:252-257 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:252-257 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:101— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:101-106 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:102-107 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:102-107 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:102-107 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:102-107 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:102-107 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:108— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:108-113 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:109-114 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:109-114 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:109-114 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:109-114 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:109-114 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:142— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:142-147 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:143-148 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:143-148 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:143-148 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:143-148 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:143-148 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:149— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:149-154 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:150-155 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:150-155 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:150-155 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:150-155 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:150-155 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:122— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:122-127 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:123-128 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:123-128 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:123-128 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:123-128 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:123-128 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 183 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:129— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:129-134 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:130-135 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:130-135 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:130-135 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:130-135 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:130-135 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 183 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:136— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:136-141 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:137-142 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:137-142 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:137-142 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:137-142 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:137-142 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 183 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:143— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:143-148 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:144-149 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:144-149 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:144-149 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:144-149 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:144-149 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 183 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:100— packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:100-105 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart:101-106 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/tile_overlay.dart:101-106 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/tile_overlay.dart:101-106 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/tile_overlay.dart:101-106 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/tile_overlay.dart:101-106 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 2) packages/animations/lib/src/shared_axis_transition.dart:302— packages/animations/lib/src/shared_axis_transition.dart:302-317 | packages/animations/lib/src/shared_axis_transition.dart:321-336 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) packages/material_ui/lib/src/checkbox_theme.dart:189— packages/material_ui/lib/src/checkbox_theme.dart:189-204 | packages/material_ui/lib/src/radio_theme.dart:215-230 — before extracting anything, compare `packages/material_ui/lib/src/checkbox_theme.dart` and `packages/material_ui/lib/src/radio_theme.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 2) packages/material_ui/lib/src/range_slider.dart:997— packages/material_ui/lib/src/range_slider.dart:997-1012 | packages/material_ui/lib/src/slider.dart:1089-1104 — before extracting anything, compare `packages/material_ui/lib/src/range_slider.dart` and `packages/material_ui/lib/src/slider.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 2) packages/material_ui/lib/src/range_slider.dart:1128— packages/material_ui/lib/src/range_slider.dart:1128-1143 | packages/material_ui/lib/src/slider.dart:1232-1247 — before extracting anything, compare `packages/material_ui/lib/src/range_slider.dart` and `packages/material_ui/lib/src/slider.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 2) packages/material_ui/lib/src/range_slider_parts.dart:821— packages/material_ui/lib/src/range_slider_parts.dart:821-836 | packages/material_ui/lib/src/range_slider_parts.dart:1198-1213 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) packages/material_ui/lib/src/range_slider_parts.dart:1298— packages/material_ui/lib/src/range_slider_parts.dart:1298-1313 | packages/material_ui/lib/src/range_slider_parts.dart:1370-1385 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) packages/material_ui/lib/src/time_picker.dart:2550— packages/material_ui/lib/src/time_picker.dart:2550-2565 | packages/material_ui/lib/src/time_picker.dart:2600-2615 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) packages/pigeon/lib/src/java/java_generator.dart:426— packages/pigeon/lib/src/java/java_generator.dart:426-441 | packages/pigeon/lib/src/java/java_generator.dart:503-518 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) packages/pigeon/lib/src/objc/objc_generator.dart:657— packages/pigeon/lib/src/objc/objc_generator.dart:657-672 | packages/pigeon/lib/src/objc/objc_generator.dart:675-690 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) packages/pigeon/lib/src/pigeon_lib_internal.dart:2059— packages/pigeon/lib/src/pigeon_lib_internal.dart:2059-2074 | packages/pigeon/lib/src/pigeon_lib_internal.dart:2153-2168 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/flash/FlashMode.java:19— packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/flash/FlashMode.java:19-43 | packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/types/FlashMode.java:19-34 — before extracting anything, compare `packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/flash/FlashMode.java` and `packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/types/FlashMode.java` as WHOLE FILES: 95% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (16 lines × 2) packages/camera/camera_android/example/lib/camera_controller.dart:148— packages/camera/camera_android/example/lib/camera_controller.dart:148-163 | packages/camera/camera_avfoundation/example/lib/camera_controller.dart:148-163 — before extracting anything, compare `packages/camera/camera_android/example/lib/camera_controller.dart` and `packages/camera/camera_avfoundation/example/lib/camera_controller.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 2) packages/cross_file/cross_file_web/example/lib/main.dart:56— packages/cross_file/cross_file_web/example/lib/main.dart:56-71 | packages/file_selector/file_selector_android/example/lib/open_text_page.dart:43-58 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (16 lines × 2) packages/file_selector/file_selector_linux/example/lib/get_directory_page.dart:14— packages/file_selector/file_selector_linux/example/lib/get_directory_page.dart:14-29 | packages/file_selector/file_selector_windows/example/lib/get_directory_page.dart:14-29 — before extracting anything, compare `packages/file_selector/file_selector_linux/example/lib/get_directory_page.dart` and `packages/file_selector/file_selector_windows/example/lib/get_directory_page.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 2) packages/go_router/example/lib/others/custom_stateful_shell_route.dart:324— packages/go_router/example/lib/others/custom_stateful_shell_route.dart:324-339 | packages/go_router_builder/example/lib/stateful_shell_route_example.dart:180-195 — before extracting anything, compare `packages/go_router/example/lib/others/custom_stateful_shell_route.dart` and `packages/go_router_builder/example/lib/stateful_shell_route_example.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 2) packages/go_router/example/lib/others/custom_stateful_shell_route.dart:431— packages/go_router/example/lib/others/custom_stateful_shell_route.dart:431-446 | packages/go_router/example/lib/stateful_shell_route.dart:303-318 — before extracting anything, compare `packages/go_router/example/lib/others/custom_stateful_shell_route.dart` and `packages/go_router/example/lib/stateful_shell_route.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 2) packages/local_auth/local_auth_android/example/lib/main.dart:42— packages/local_auth/local_auth_android/example/lib/main.dart:42-57 | packages/local_auth/local_auth_windows/example/lib/main.dart:42-57 — before extracting anything, compare `packages/local_auth/local_auth_android/example/lib/main.dart` and `packages/local_auth/local_auth_windows/example/lib/main.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 2) packages/material_ui/example/lib/dialog/dialog.0.dart:40— packages/material_ui/example/lib/dialog/dialog.0.dart:40-55 | packages/material_ui/example/lib/dialog/dialog.0.dart:64-79 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) packages/material_ui/example/lib/dropdown_menu/dropdown_menu.2.dart:62— packages/material_ui/example/lib/dropdown_menu/dropdown_menu.2.dart:62-77 | packages/material_ui/example/lib/dropdown_menu/dropdown_menu.2.dart:121-136 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) packages/material_ui/example/lib/reorderable_list/reorderable_list_view.0.dart:44— packages/material_ui/example/lib/reorderable_list/reorderable_list_view.0.dart:44-59 | packages/material_ui/example/lib/reorderable_list/reorderable_list_view.1.dart:69-84 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (16 lines × 2) packages/material_ui/example/lib/scaffold/scaffold_state.show_bottom_sheet.0.dart:39— packages/material_ui/example/lib/scaffold/scaffold_state.show_bottom_sheet.0.dart:39-54 | packages/material_ui/example/lib/scaffold/scaffold_state.show_bottom_sheet.1.dart:89-104 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (16 lines × 2) packages/video_player/video_player/example/lib/audio_tracks_demo.dart:68— packages/video_player/video_player/example/lib/audio_tracks_demo.dart:68-83 | packages/video_player/video_player/example/lib/video_tracks_demo.dart:69-84 — before extracting anything, compare `packages/video_player/video_player/example/lib/audio_tracks_demo.dart` and `packages/video_player/video_player/example/lib/video_tracks_demo.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) packages/image_picker/image_picker_android/lib/image_picker_android.dart:34— packages/image_picker/image_picker_android/lib/image_picker_android.dart:34-50 | packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:20-36 — before extracting anything, compare `packages/image_picker/image_picker_android/lib/image_picker_android.dart` and `packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) packages/image_picker/image_picker_android/lib/image_picker_android.dart:154— packages/image_picker/image_picker_android/lib/image_picker_android.dart:154-170 | packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:179-195 — before extracting anything, compare `packages/image_picker/image_picker_android/lib/image_picker_android.dart` and `packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) packages/material_ui/lib/src/button_style_button.dart:485— packages/material_ui/lib/src/button_style_button.dart:485-501 | packages/material_ui/lib/src/menu_anchor.dart:3747-3763 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (17 lines × 2) packages/material_ui/lib/src/checkbox.dart:515— packages/material_ui/lib/src/checkbox.dart:515-531 | packages/material_ui/lib/src/radio.dart:707-723 — before extracting anything, compare `packages/material_ui/lib/src/checkbox.dart` and `packages/material_ui/lib/src/radio.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) packages/material_ui/lib/src/divider.dart:207— packages/material_ui/lib/src/divider.dart:207-223 | packages/material_ui/lib/src/divider.dart:348-364 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) packages/material_ui/lib/src/range_slider_parts.dart:1277— packages/material_ui/lib/src/range_slider_parts.dart:1277-1293 | packages/material_ui/lib/src/range_slider_parts.dart:1353-1369 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) packages/material_ui/lib/src/scrollbar_theme.dart:252— packages/material_ui/lib/src/scrollbar_theme.dart:252-268 | packages/material_ui/lib/src/switch_theme.dart:204-220 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (17 lines × 2) packages/video_player/video_player_android/lib/src/android_video_player.dart:264— packages/video_player/video_player_android/lib/src/android_video_player.dart:264-280 | packages/video_player/video_player_avfoundation/lib/src/avfoundation_video_player.dart:226-242 — before extracting anything, compare `packages/video_player/video_player_android/lib/src/android_video_player.dart` and `packages/video_player/video_player_avfoundation/lib/src/avfoundation_video_player.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java:220— packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java:220-236 | packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java:323-339 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:164— packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:164-180 | packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:185-201 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:164` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `completionHandler` to `@escaping @MainActor (Bool) -> Void` in one and `@escaping (Bool) -> Void` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (17 lines × 2) packages/cupertino_ui/example/lib/sheet/cupertino_sheet.0.dart:26— packages/cupertino_ui/example/lib/sheet/cupertino_sheet.0.dart:26-42 | packages/cupertino_ui/example/lib/sheet/cupertino_sheet.3.dart:29-45 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (17 lines × 2) packages/cupertino_ui/example/lib/sheet/cupertino_sheet.0.dart:37— packages/cupertino_ui/example/lib/sheet/cupertino_sheet.0.dart:37-53 | packages/cupertino_ui/example/lib/sheet/cupertino_sheet.0.dart:74-90 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) packages/file_selector/file_selector_android/example/lib/open_image_page.dart:43— packages/file_selector/file_selector_android/example/lib/open_image_page.dart:43-59 | packages/file_selector/file_selector_android/example/lib/open_multiple_images_page.dart:50-66 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (17 lines × 2) packages/go_router/example/lib/state_restoration/go_route_state_restoration.dart:60— packages/go_router/example/lib/state_restoration/go_route_state_restoration.dart:60-76 | packages/go_router/example/lib/state_restoration/shell_route_state_restoration.dart:69-85 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (17 lines × 2) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:300— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:300-316 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:296-312 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) packages/material_ui/example/lib/color_scheme/color_scheme.0.dart:523— packages/material_ui/example/lib/color_scheme/color_scheme.0.dart:523-539 | packages/material_ui/example/lib/color_scheme/dynamic_content_color.0.dart:510-526 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (17 lines × 2) packages/material_ui/example/lib/search_anchor/search_anchor.2.dart:38— packages/material_ui/example/lib/search_anchor/search_anchor.2.dart:38-54 | packages/material_ui/example/lib/search_anchor/search_bar.0.dart:62-78 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (17 lines × 2) packages/video_player/video_player_android/example/lib/mini_controller.dart:316— packages/video_player/video_player_android/example/lib/mini_controller.dart:316-332 | packages/video_player/video_player_avfoundation/example/lib/mini_controller.dart:303-319 — before extracting anything, compare `packages/video_player/video_player_android/example/lib/mini_controller.dart` and `packages/video_player/video_player_avfoundation/example/lib/mini_controller.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:279— packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:279-295 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart:270-286 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/main.dart:221— packages/webview_flutter/webview_flutter_android/example/lib/main.dart:221-237 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:204-220 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/main.dart:474— packages/webview_flutter/webview_flutter_android/example/lib/main.dart:474-490 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:469-485 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_web/lib/src/circles.dart:60— packages/google_maps_flutter/google_maps_flutter_web/lib/src/circles.dart:60-64 | packages/google_maps_flutter/google_maps_flutter_web/lib/src/polygons.dart:60-64 | packages/google_maps_flutter/google_maps_flutter_web/lib/src/polylines.dart:60-64 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (5 lines × 3) packages/pigeon/lib/src/dart/dart_generator.dart:3207— packages/pigeon/lib/src/dart/dart_generator.dart:3207-3211 | packages/pigeon/lib/src/kotlin/kotlin_generator.dart:793-797 | packages/pigeon/lib/src/swift/swift_generator.dart:804-808 — `packages/pigeon/lib/src/kotlin/kotlin_generator.dart` and `packages/pigeon/lib/src/swift/swift_generator.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 78 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift:26— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift:26-30 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/CircleController.swift:26-30 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/CircleController.swift:26-30 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/CircleController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift:68— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift:68-72 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/CircleController.swift:68-72 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/CircleController.swift:68-72 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/CircleController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:374— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:374-378 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:374-378 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:374-378 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:380— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:380-384 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:380-384 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:380-384 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:386— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:386-390 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:386-390 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:386-390 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:392— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:392-396 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:392-396 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:392-396 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:415— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:415-419 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:415-419 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:415-419 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:421— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:421-425 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:421-425 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:421-425 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:106— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:106-110 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift:106-110 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GroundOverlayController.swift:106-110 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift:13— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift:13-17 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/HeatmapController.swift:13-17 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/HeatmapController.swift:13-17 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/HeatmapController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift:27— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift:27-31 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/HeatmapController.swift:27-31 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/HeatmapController.swift:27-31 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/HeatmapController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:17— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:17-21 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:17-21 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:17-21 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift:12— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift:12-16 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolygonController.swift:12-16 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/PolygonController.swift:12-16 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolygonController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift:25— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift:25-29 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolygonController.swift:25-29 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/PolygonController.swift:25-29 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolygonController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift:12— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift:12-16 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolylineController.swift:12-16 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/PolylineController.swift:12-16 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolylineController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift:25— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift:25-29 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolylineController.swift:25-29 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/PolylineController.swift:25-29 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolylineController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:23— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:23-27 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift:23-27 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/TileOverlayController.swift:23-27 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:40— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:40-44 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift:40-44 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/TileOverlayController.swift:40-44 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) packages/material_ui/example/lib/autocomplete/autocomplete.3.dart:78— packages/material_ui/example/lib/autocomplete/autocomplete.3.dart:78-82 | packages/material_ui/example/lib/autocomplete/autocomplete.4.dart:97-101 | packages/material_ui/example/lib/search_anchor/search_anchor.4.dart:67-71 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (15 lines × 2) packages/cupertino_ui/lib/src/switch.dart:831— packages/cupertino_ui/lib/src/switch.dart:831-845 | packages/material_ui/lib/src/switch.dart:1084-1098 — before extracting anything, compare `packages/cupertino_ui/lib/src/switch.dart` and `packages/material_ui/lib/src/switch.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:873— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:873-887 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:755-769 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) packages/image_picker/image_picker_android/lib/image_picker_android.dart:172— packages/image_picker/image_picker_android/lib/image_picker_android.dart:172-186 | packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:197-211 — before extracting anything, compare `packages/image_picker/image_picker_android/lib/image_picker_android.dart` and `packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) packages/image_picker/image_picker_ios/lib/image_picker_ios.dart:59— packages/image_picker/image_picker_ios/lib/image_picker_ios.dart:59-73 | packages/image_picker/image_picker_ios/lib/image_picker_ios.dart:267-281 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) packages/material_ui/lib/src/button.dart:547— packages/material_ui/lib/src/button.dart:547-561 | packages/material_ui/lib/src/button_style_button.dart:741-755 — before extracting anything, compare `packages/material_ui/lib/src/button.dart` and `packages/material_ui/lib/src/button_style_button.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) packages/material_ui/lib/src/range_slider.dart:855— packages/material_ui/lib/src/range_slider.dart:855-869 | packages/material_ui/lib/src/slider.dart:902-916 — before extracting anything, compare `packages/material_ui/lib/src/range_slider.dart` and `packages/material_ui/lib/src/slider.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) packages/material_ui/lib/src/shapes/cubic.dart:239— packages/material_ui/lib/src/shapes/cubic.dart:239-253 | packages/material_ui/lib/src/shapes/cubic.dart:286-300 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) packages/pigeon/lib/src/gobject/gobject_generator.dart:831— packages/pigeon/lib/src/gobject/gobject_generator.dart:831-845 | packages/pigeon/lib/src/gobject/gobject_generator.dart:1028-1042 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) packages/pigeon/lib/src/pigeon_lib_internal.dart:2460— packages/pigeon/lib/src/pigeon_lib_internal.dart:2460-2474 | packages/pigeon/lib/src/pigeon_lib_internal.dart:2622-2636 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) packages/camera/camera/example/lib/main.dart:593— packages/camera/camera/example/lib/main.dart:593-607 | packages/camera/camera_avfoundation/example/lib/main.dart:594-608 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_avfoundation/example/lib/main.dart` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 589 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) packages/cupertino_ui/example/lib/date_picker/cupertino_date_picker.0.dart:55— packages/cupertino_ui/example/lib/date_picker/cupertino_date_picker.0.dart:55-69 | packages/cupertino_ui/example/lib/date_picker/cupertino_timer_picker.0.dart:53-67 — before extracting anything, compare `packages/cupertino_ui/example/lib/date_picker/cupertino_date_picker.0.dart` and `packages/cupertino_ui/example/lib/date_picker/cupertino_timer_picker.0.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) packages/cupertino_ui/example/lib/date_picker/cupertino_date_picker.0.dart:163— packages/cupertino_ui/example/lib/date_picker/cupertino_date_picker.0.dart:163-177 | packages/cupertino_ui/example/lib/date_picker/cupertino_timer_picker.0.dart:108-122 — before extracting anything, compare `packages/cupertino_ui/example/lib/date_picker/cupertino_date_picker.0.dart` and `packages/cupertino_ui/example/lib/date_picker/cupertino_timer_picker.0.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) packages/cupertino_ui/example/lib/list_section/list_section_base.0.dart:31— packages/cupertino_ui/example/lib/list_section/list_section_base.0.dart:31-45 | packages/cupertino_ui/example/lib/list_section/list_section_inset.0.dart:31-45 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (15 lines × 2) packages/file_selector/file_selector_android/example/lib/open_multiple_images_page.dart:18— packages/file_selector/file_selector_android/example/lib/open_multiple_images_page.dart:18-32 | packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart:20-34 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (15 lines × 2) packages/google_sign_in/google_sign_in_android/example/lib/main.dart:161— packages/google_sign_in/google_sign_in_android/example/lib/main.dart:161-175 | packages/google_sign_in/google_sign_in_ios/example/lib/main.dart:159-173 — before extracting anything, compare `packages/google_sign_in/google_sign_in_android/example/lib/main.dart` and `packages/google_sign_in/google_sign_in_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) packages/material_ui/example/lib/expansion_panel/expansion_panel_list.0.dart:73— packages/material_ui/example/lib/expansion_panel/expansion_panel_list.0.dart:73-87 | packages/material_ui/example/lib/expansion_panel/expansion_panel_list.expansion_panel_list_radio.0.dart:72-86 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (15 lines × 2) packages/video_player/video_player_android/example/lib/mini_controller.dart:463— packages/video_player/video_player_android/example/lib/mini_controller.dart:463-477 | packages/video_player/video_player_avfoundation/example/lib/mini_controller.dart:432-446 — before extracting anything, compare `packages/video_player/video_player_android/example/lib/mini_controller.dart` and `packages/video_player/video_player_avfoundation/example/lib/mini_controller.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) packages/material_ui/example/lib/progress_indicator/linear_progress_indicator.0.dart:34— packages/material_ui/example/lib/progress_indicator/linear_progress_indicator.0.dart:34-48 | packages/material_ui/example/lib/progress_indicator/linear_progress_indicator.1.dart:34-48 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:578— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:578-587 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:473-482 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:478-487 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:478-487 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:478-487 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:544-553 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/file_selector/file_selector/example/lib/open_text_page.dart:80— packages/file_selector/file_selector/example/lib/open_text_page.dart:80-89 | packages/file_selector/file_selector_android/example/lib/open_text_page.dart:72-81 | packages/file_selector/file_selector_ios/example/lib/open_text_page.dart:72-81 | packages/file_selector/file_selector_linux/example/lib/open_text_page.dart:68-77 | packages/file_selector/file_selector_macos/example/lib/open_text_page.dart:68-77 | packages/file_selector/file_selector_windows/example/lib/open_text_page.dart:68-77 — before extracting anything, compare `packages/file_selector/file_selector/example/lib/open_text_page.dart` and `packages/file_selector/file_selector_ios/example/lib/open_text_page.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:206— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:206-215 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart:196-205 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:195-204 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart:195-204 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_markers_clustering.dart:195-204 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart:195-204 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:188— packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:188-197 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart:185-194 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:179-188 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart:179-188 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/clustering.dart:179-188 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart:179-188 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/image_picker/image_picker/example/lib/main.dart:217— packages/image_picker/image_picker/example/lib/main.dart:217-226 | packages/image_picker/image_picker_android/example/lib/main.dart:239-248 | packages/image_picker/image_picker_ios/example/lib/main.dart:221-230 | packages/image_picker/image_picker_linux/example/lib/main.dart:214-223 | packages/image_picker/image_picker_macos/example/lib/main.dart:214-223 | packages/image_picker/image_picker_windows/example/lib/main.dart:214-223 — before extracting anything, compare `packages/image_picker/image_picker/example/lib/main.dart` and `packages/image_picker/image_picker_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:207— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:207-216 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:208-218 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:191-201 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:191-201 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:191-201 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:191-201 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/main.dart:71— packages/google_maps_flutter/google_maps_flutter/example/lib/main.dart:71-80 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/main.dart:69-78 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/maps_demo.dart:17-26 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/maps_demo.dart:17-26 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/maps_demo.dart:17-26 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/maps_demo.dart:17-26 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:129— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:129-138 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:74-83 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:73-82 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:73-82 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:73-82 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:73-82 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:191— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:191-200 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:136-145 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:124-133 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:124-133 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:124-133 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:124-133 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:202— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:202-211 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:147-156 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:135-144 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:135-144 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:135-144 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:135-144 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:213— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:213-222 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:158-167 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:146-155 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:146-155 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:146-155 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:146-155 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:224— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:224-233 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:169-178 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:157-166 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:157-166 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:157-166 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:157-166 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:235— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:235-244 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:180-189 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:168-177 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:168-177 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:168-177 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:168-177 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:246— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:246-255 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:191-200 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:179-188 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:179-188 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:179-188 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:179-188 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:257— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:257-266 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:202-211 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:190-199 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:190-199 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:190-199 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:190-199 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:268— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:268-277 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:213-222 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:201-210 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:201-210 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:201-210 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:201-210 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:279— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:279-288 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:224-233 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:212-221 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:212-221 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:212-221 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:212-221 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:61— packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:61-70 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:62-71 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart:62-71 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_circle.dart:62-71 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_circle.dart:62-71 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_circle.dart:62-71 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:136— packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:136-142 | packages/shared_preferences/shared_preferences_web/lib/shared_preferences_web.dart:132-138 | packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart:140-146 — before extracting anything, compare `packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart` and `packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift:87— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift:87-93 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/CircleController.swift:87-93 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/CircleController.swift:87-93 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/CircleController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ConversionUtils.swift:74— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ConversionUtils.swift:74-80 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ConversionUtils.swift:74-80 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/ConversionUtils.swift:74-80 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ConversionUtils.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ConversionUtils.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:349— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:349-355 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:349-355 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:349-355 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:576— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:576-582 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:576-582 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:576-582 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:198— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:198-204 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift:198-204 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GroundOverlayController.swift:198-204 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:218— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:218-224 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:218-224 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:218-224 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:256— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:256-262 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:256-262 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:256-262 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift:92— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift:92-98 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolygonController.swift:92-98 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/PolygonController.swift:92-98 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolygonController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift:97— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift:97-103 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolylineController.swift:97-103 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/PolylineController.swift:97-103 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolylineController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/webview_flutter/webview_flutter/example/lib/main.dart:414— packages/webview_flutter/webview_flutter/example/lib/main.dart:414-420 | packages/webview_flutter/webview_flutter_android/example/lib/main.dart:473-479 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:468-474 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/camera/camera_android/example/lib/main.dart:106— packages/camera/camera_android/example/lib/main.dart:106-112 | packages/camera/camera_android_camerax/example/lib/main.dart:105-111 | packages/camera/camera_avfoundation/example/lib/main.dart:106-112 — before extracting anything, compare `packages/camera/camera_android/example/lib/main.dart` and `packages/camera/camera_android_camerax/example/lib/main.dart` as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 581 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/cupertino_ui/example/lib/nav_bar/cupertino_navigation_bar.0.dart:15— packages/cupertino_ui/example/lib/nav_bar/cupertino_navigation_bar.0.dart:15-21 | packages/cupertino_ui/example/lib/nav_bar/cupertino_navigation_bar.1.dart:16-22 | packages/cupertino_ui/example/lib/nav_bar/cupertino_navigation_bar.2.dart:15-21 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (7 lines × 3) packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.0.dart:15— packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.0.dart:15-21 | packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.1.dart:15-21 | packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.2.dart:15-21 — before extracting anything, compare `packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.0.dart` and `packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.2.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/go_router/example/lib/push_with_shell_route.dart:87— packages/go_router/example/lib/push_with_shell_route.dart:87-93 | packages/go_router/example/lib/push_with_shell_route.dart:105-111 | packages/go_router_builder/example/lib/readme_excerpts.dart:350-356 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (7 lines × 3) packages/in_app_purchase/in_app_purchase/example/lib/main.dart:371— packages/in_app_purchase/in_app_purchase/example/lib/main.dart:371-377 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:530-536 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:469-475 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase/example/lib/main.dart` and `packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/shared_preferences/shared_preferences_foundation/example/lib/main.dart:48— packages/shared_preferences/shared_preferences_foundation/example/lib/main.dart:48-54 | packages/shared_preferences/shared_preferences_linux/example/lib/main.dart:48-54 | packages/shared_preferences/shared_preferences_windows/example/lib/main.dart:48-54 — before extracting anything, compare `packages/shared_preferences/shared_preferences_foundation/example/lib/main.dart` and `packages/shared_preferences/shared_preferences_linux/example/lib/main.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) packages/webview_flutter/webview_flutter/example/lib/main.dart:457— packages/webview_flutter/webview_flutter/example/lib/main.dart:457-463 | packages/webview_flutter/webview_flutter_android/example/lib/main.dart:516-522 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:510-516 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:162— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:162-169 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:162-169 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:179-186 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:179-186 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:179-186 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:179-186 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:149— packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:149-156 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:157-164 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:177-184 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:177-184 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:177-184 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:177-184 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:132— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:132-139 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:131-140 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:128-137 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:128-137 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:128-137 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:128-137 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:198— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:198-205 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:199-206 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:182-189 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:182-189 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:182-189 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:182-189 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:108— packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:108-115 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:109-116 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart:109-116 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_circle.dart:109-116 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_circle.dart:109-116 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_circle.dart:109-116 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:117— packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:117-124 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:118-125 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart:118-125 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_circle.dart:118-125 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_circle.dart:118-125 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_circle.dart:118-125 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:62— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:62-69 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:63-70 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:63-70 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:63-70 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:63-70 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:63-70 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:115— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:115-122 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:116-123 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:116-123 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:116-123 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:116-123 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:116-123 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:124— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:124-131 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:125-132 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:125-132 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:125-132 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:125-132 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:125-132 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:133— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:133-140 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:134-141 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:134-141 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:134-141 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:134-141 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:134-141 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:86— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:86-93 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:87-94 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:87-94 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:87-94 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:87-94 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:87-94 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 183 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:150— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:150-157 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:151-158 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:151-158 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:151-158 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:151-158 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:151-158 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 183 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:159— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:159-166 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:160-167 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:160-167 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:160-167 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:160-167 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:160-167 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 183 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:168— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:168-175 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:169-176 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:169-176 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:169-176 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:169-176 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:169-176 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 183 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:177— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:177-184 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:178-185 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:178-185 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:178-185 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:178-185 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:178-185 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 183 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/image_picker/image_picker/example/lib/main.dart:191— packages/image_picker/image_picker/example/lib/main.dart:191-198 | packages/image_picker/image_picker_android/example/lib/main.dart:213-220 | packages/image_picker/image_picker_ios/example/lib/main.dart:195-202 | packages/image_picker/image_picker_linux/example/lib/main.dart:188-195 | packages/image_picker/image_picker_macos/example/lib/main.dart:188-195 | packages/image_picker/image_picker_windows/example/lib/main.dart:188-195 — before extracting anything, compare `packages/image_picker/image_picker/example/lib/main.dart` and `packages/image_picker/image_picker_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/image_picker/image_picker/example/lib/main.dart:200— packages/image_picker/image_picker/example/lib/main.dart:200-207 | packages/image_picker/image_picker_android/example/lib/main.dart:222-229 | packages/image_picker/image_picker_ios/example/lib/main.dart:204-211 | packages/image_picker/image_picker_linux/example/lib/main.dart:197-204 | packages/image_picker/image_picker_macos/example/lib/main.dart:197-204 | packages/image_picker/image_picker_windows/example/lib/main.dart:197-204 — before extracting anything, compare `packages/image_picker/image_picker/example/lib/main.dart` and `packages/image_picker/image_picker_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 6) packages/image_picker/image_picker/example/lib/main.dart:461— packages/image_picker/image_picker/example/lib/main.dart:461-468 | packages/image_picker/image_picker_android/example/lib/main.dart:492-499 | packages/image_picker/image_picker_ios/example/lib/main.dart:410-417 | packages/image_picker/image_picker_linux/example/lib/main.dart:414-421 | packages/image_picker/image_picker_macos/example/lib/main.dart:414-421 | packages/image_picker/image_picker_windows/example/lib/main.dart:414-421 — before extracting anything, compare `packages/image_picker/image_picker/example/lib/main.dart` and `packages/image_picker/image_picker_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:183— packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:183-194 | packages/image_picker/image_picker_macos/lib/image_picker_macos.dart:190-201 | packages/image_picker/image_picker_windows/lib/image_picker_windows.dart:212-223 — before extracting anything, compare `packages/image_picker/image_picker_linux/lib/image_picker_linux.dart` and `packages/image_picker/image_picker_macos/lib/image_picker_macos.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) packages/material_ui/lib/src/calendar_date_picker.dart:1333— packages/material_ui/lib/src/calendar_date_picker.dart:1333-1344 | packages/material_ui/lib/src/calendar_date_picker.dart:1626-1637 | packages/material_ui/lib/src/date_picker.dart:2923-2934 — before extracting anything, compare `packages/material_ui/lib/src/calendar_date_picker.dart` and `packages/material_ui/lib/src/date_picker.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) packages/vector_graphics_compiler/lib/src/svg/parser.dart:498— packages/vector_graphics_compiler/lib/src/svg/parser.dart:498-509 | packages/vector_graphics_compiler/lib/src/svg/parser.dart:553-564 | packages/vector_graphics_compiler/lib/src/svg/parser.dart:577-588 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:624— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:624-635 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:624-635 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:624-635 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:637— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:637-648 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:637-648 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:637-648 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:650— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:650-661 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:650-661 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:650-661 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:127— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:127-138 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ImageUtils.swift:127-138 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/ImageUtils.swift:127-138 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ImageUtils.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:436— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:436-447 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:436-447 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:436-447 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift:65— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift:65-76 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/HeatmapController.swift:65-76 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/HeatmapController.swift:65-76 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/HeatmapController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:145— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:145-156 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ImageUtils.swift:145-156 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/ImageUtils.swift:145-156 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ImageUtils.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) packages/go_router/example/lib/exception_handling.dart:54— packages/go_router/example/lib/exception_handling.dart:54-65 | packages/go_router/example/lib/main.dart:54-65 | packages/go_router/example/lib/main.dart:73-84 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (12 lines × 3) packages/in_app_purchase/in_app_purchase/example/lib/main.dart:76— packages/in_app_purchase/in_app_purchase/example/lib/main.dart:76-87 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:97-108 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:79-90 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase/example/lib/main.dart` and `packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) packages/material_ui/example/lib/app/app.0.dart:47— packages/material_ui/example/lib/app/app.0.dart:47-58 | packages/material_ui/example/lib/expansion_tile/expansion_tile.2.dart:44-55 | packages/material_ui/example/lib/popup_menu/popup_menu.2.dart:55-66 — before extracting anything, compare `packages/material_ui/example/lib/app/app.0.dart` and `packages/material_ui/example/lib/expansion_tile/expansion_tile.2.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) packages/material_ui/example/lib/tooltip/tooltip.0.dart:15— packages/material_ui/example/lib/tooltip/tooltip.0.dart:15-26 | packages/material_ui/example/lib/tooltip/tooltip.1.dart:15-26 | packages/material_ui/example/lib/tooltip/tooltip.2.dart:15-26 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (12 lines × 3) packages/webview_flutter/webview_flutter/example/lib/main.dart:424— packages/webview_flutter/webview_flutter/example/lib/main.dart:424-435 | packages/webview_flutter/webview_flutter_android/example/lib/main.dart:483-494 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:478-489 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:504— packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:504-515 | packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart:219-230 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart:450-461 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart` and `packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart:2465— packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart:2465-2476 | packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart:2478-2489 | packages/pigeon/platform_tests/shared_test_plugin_code/lib/native_interop_integration_tests.dart:3571-3582 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (8 lines × 3) packages/cupertino_ui/lib/src/search_field.dart:414— packages/cupertino_ui/lib/src/search_field.dart:414-421 | packages/cupertino_ui/lib/src/text_field.dart:1219-1226 | packages/material_ui/lib/src/text_field.dart:1340-1347 — before extracting anything, compare `packages/cupertino_ui/lib/src/text_field.dart` and `packages/material_ui/lib/src/text_field.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) packages/cupertino_ui/lib/src/desktop_text_selection.dart:145— packages/cupertino_ui/lib/src/desktop_text_selection.dart:145-152 | packages/cupertino_ui/lib/src/text_selection.dart:236-243 | packages/material_ui/lib/src/desktop_text_selection.dart:160-167 — before extracting anything, compare `packages/cupertino_ui/lib/src/desktop_text_selection.dart` and `packages/cupertino_ui/lib/src/text_selection.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift:74— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift:74-81 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/CircleController.swift:74-81 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/CircleController.swift:74-81 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/CircleController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift:38— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift:38-45 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ClusterManagersController.swift:38-45 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/ClusterManagersController.swift:38-45 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ClusterManagersController.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift:72— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift:72-79 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ClusterManagersController.swift:72-79 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/ClusterManagersController.swift:72-79 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ClusterManagersController.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:313— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:313-320 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:313-320 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:313-320 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:427— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:427-434 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:427-434 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:427-434 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:527— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:527-534 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:527-534 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:527-534 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:189— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:189-196 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift:189-196 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GroundOverlayController.swift:189-196 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift:78— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift:78-85 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/HeatmapController.swift:78-85 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/HeatmapController.swift:78-85 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/HeatmapController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift:87— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift:87-94 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/HeatmapController.swift:87-94 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/HeatmapController.swift:87-94 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/HeatmapController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift:83— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift:83-90 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolygonController.swift:83-90 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/PolygonController.swift:83-90 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolygonController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift:88— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift:88-95 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolylineController.swift:88-95 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/PolylineController.swift:88-95 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolylineController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:173— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:173-180 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift:173-180 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/TileOverlayController.swift:173-180 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) packages/quick_actions/quick_actions/example/lib/main.dart:17— packages/quick_actions/quick_actions/example/lib/main.dart:17-24 | packages/quick_actions/quick_actions_android/example/lib/main.dart:17-24 | packages/quick_actions/quick_actions_ios/example/lib/main.dart:17-24 — before extracting anything, compare `packages/quick_actions/quick_actions/example/lib/main.dart` and `packages/quick_actions/quick_actions_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Hotspot: packages/pigeon/lib/src/swift/swift_generator.dart packages/pigeon/lib/src/swift/swift_generator.dart:1038— packages/pigeon/lib/src/swift/swift_generator.dart changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in SwiftGenerator._varToSwift at line 1038. 2 of those changes were fix/bug commits, and the other 7 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 23:41:09 +00:00' --until='2026-10-22 23:41:09 +00:00' --full-history --no-merges -- packages/pigeon/lib/src/swift/swift_generator.dart`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/material_ui/lib/src/input_decorator.dart packages/material_ui/lib/src/input_decorator.dart:2343— packages/material_ui/lib/src/input_decorator.dart changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in _InputDecoratorState.build at line 2343. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 23:41:09 +00:00' --until='2026-10-22 23:41:09 +00:00' --full-history --no-merges -- packages/material_ui/lib/src/input_decorator.dart`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/material_ui/lib/src/theme_data.dart packages/material_ui/lib/src/theme_data.dart:287— packages/material_ui/lib/src/theme_data.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in ThemeData.ThemeData at line 287. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 23:41:09 +00:00' --until='2026-10-22 23:41:09 +00:00' --full-history --no-merges -- packages/material_ui/lib/src/theme_data.dart`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/pigeon/lib/src/dart/dart_generator.dart packages/pigeon/lib/src/dart/dart_generator.dart:1640— packages/pigeon/lib/src/dart/dart_generator.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in DartGenerator._writeNativeInteropHostApi at line 1640. 2 of those changes were fix/bug commits, and the other 3 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 23:41:09 +00:00' --until='2026-10-22 23:41:09 +00:00' --full-history --no-merges -- packages/pigeon/lib/src/dart/dart_generator.dart`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/material_ui/lib/src/dropdown.dart packages/material_ui/lib/src/dropdown.dart:1610— packages/material_ui/lib/src/dropdown.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in _DropdownButtonState.build at line 1610. 2 of those changes were fix/bug commits, and the other 3 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 23:41:09 +00:00' --until='2026-10-22 23:41:09 +00:00' --full-history --no-merges -- packages/material_ui/lib/src/dropdown.dart`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/material_ui/lib/src/snack_bar.dart packages/material_ui/lib/src/snack_bar.dart:641— packages/material_ui/lib/src/snack_bar.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in _SnackBarState.build at line 641. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 23:41:09 +00:00' --until='2026-10-22 23:41:09 +00:00' --full-history --no-merges -- packages/material_ui/lib/src/snack_bar.dart`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:454— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in GoogleMapController.updateMapView at line 454. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 23:41:09 +00:00' --until='2026-10-22 23:41:09 +00:00' --full-history --no-merges -- packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:454— packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in GoogleMapController.updateMapView at line 454. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 23:41:09 +00:00' --until='2026-10-22 23:41:09 +00:00' --full-history --no-merges -- packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:454— packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in GoogleMapController.updateMapView at line 454. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 23:41:09 +00:00' --until='2026-10-22 23:41:09 +00:00' --full-history --no-merges -- packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/material_ui/lib/src/date_picker.dart packages/material_ui/lib/src/date_picker.dart:614— packages/material_ui/lib/src/date_picker.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in _DatePickerDialogState.build at line 614. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 23:41:09 +00:00' --until='2026-10-22 23:41:09 +00:00' --full-history --no-merges -- packages/material_ui/lib/src/date_picker.dart`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/pigeon/lib/src/pigeon_lib.dart packages/pigeon/lib/src/pigeon_lib.dart:808— packages/pigeon/lib/src/pigeon_lib.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in Pigeon.runWithOptions at line 808. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 23:41:09 +00:00' --until='2026-10-22 23:41:09 +00:00' --full-history --no-merges -- packages/pigeon/lib/src/pigeon_lib.dart`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/pigeon/lib/src/pigeon_lib_internal.dart packages/pigeon/lib/src/pigeon_lib_internal.dart:2281— packages/pigeon/lib/src/pigeon_lib_internal.dart changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in RootBuilder.visitMethodDeclaration at line 2281. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 23:41:09 +00:00' --until='2026-10-22 23:41:09 +00:00' --full-history --no-merges -- packages/pigeon/lib/src/pigeon_lib_internal.dart`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/material_ui/lib/src/range_slider.dart packages/material_ui/lib/src/range_slider.dart:821— packages/material_ui/lib/src/range_slider.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in _RangeSliderState.build at line 821. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 23:41:09 +00:00' --until='2026-10-22 23:41:09 +00:00' --full-history --no-merges -- packages/material_ui/lib/src/range_slider.dart`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: packages/vector_graphics/lib/src/vector_graphics.dart packages/vector_graphics/lib/src/vector_graphics.dart:447— packages/vector_graphics/lib/src/vector_graphics.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in _VectorGraphicWidgetState.build at line 447. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-24..2026-10-22, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-24 23:41:09 +00:00' --until='2026-10-22 23:41:09 +00:00' --full-history --no-merges -- packages/vector_graphics/lib/src/vector_graphics.dart`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Duplicated block (11 lines × 3) packages/material_ui/lib/src/range_slider_parts.dart:528— packages/material_ui/lib/src/range_slider_parts.dart:528-538 | packages/material_ui/lib/src/slider_parts.dart:333-343 | packages/material_ui/lib/src/slider_parts.dart:467-477 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) packages/webview_flutter/webview_flutter/lib/src/legacy/webview.dart:623— packages/webview_flutter/webview_flutter/lib/src/legacy/webview.dart:623-633 | packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:492-502 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart:438-448 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) packages/vector_graphics/lib/src/html_render_vector_graphics.dart:72— packages/vector_graphics/lib/src/html_render_vector_graphics.dart:72-82 | packages/vector_graphics/lib/src/render_vector_graphic.dart:152-162 | packages/vector_graphics/lib/src/render_vector_graphic.dart:361-371 — before extracting anything, compare `packages/vector_graphics/lib/src/html_render_vector_graphics.dart` and `packages/vector_graphics/lib/src/render_vector_graphic.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift:26— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift:26-36 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ClusterManagersController.swift:26-36 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/ClusterManagersController.swift:26-36 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ClusterManagersController.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:329— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:329-339 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:329-339 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:329-339 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:564— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:564-574 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:564-574 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:564-574 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:206— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:206-216 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:206-216 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:206-216 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift:64— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift:64-74 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolygonController.swift:64-74 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/PolygonController.swift:64-74 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolygonController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift:69— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift:69-79 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolylineController.swift:69-79 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/PolylineController.swift:69-79 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolylineController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:177— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:177-187 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift:177-187 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GroundOverlayController.swift:177-187 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:220— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:220-230 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift:220-230 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GroundOverlayController.swift:220-230 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) packages/path_provider/path_provider_foundation/example/lib/main.dart:104— packages/path_provider/path_provider_foundation/example/lib/main.dart:104-114 | packages/path_provider/path_provider_linux/example/lib/main.dart:88-98 | packages/path_provider/path_provider_windows/example/lib/main.dart:82-92 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (11 lines × 3) packages/webview_flutter/webview_flutter/example/lib/main.dart:223— packages/webview_flutter/webview_flutter/example/lib/main.dart:223-233 | packages/webview_flutter/webview_flutter_android/example/lib/main.dart:260-270 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:253-263 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) packages/google_adsense/example/lib/ad_unit_widget.dart:24— packages/google_adsense/example/lib/ad_unit_widget.dart:24-34 | packages/google_adsense/example/lib/h5.dart:30-40 | packages/google_adsense/example/lib/main.dart:28-38 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (10 lines × 3) packages/cupertino_ui/lib/src/date_picker.dart:2575— packages/cupertino_ui/lib/src/date_picker.dart:2575-2584 | packages/cupertino_ui/lib/src/date_picker.dart:2648-2657 | packages/cupertino_ui/lib/src/date_picker.dart:2717-2726 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 3) packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:980— packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:980-989 | packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:1000-1009 | packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:1026-1035 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:980` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:822— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:822-831 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:822-831 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:822-831 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:363— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:363-372 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:363-372 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:363-372 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:663— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:663-672 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:663-672 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:663-672 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:694— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:694-703 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:694-703 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:694-703 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:837— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:837-846 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:837-846 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:837-846 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:264— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:264-273 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:264-273 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:264-273 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:275— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:275-284 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:275-284 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:275-284 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:286— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:286-295 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:286-295 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:286-295 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) packages/local_auth/local_auth/example/lib/main.dart:86— packages/local_auth/local_auth/example/lib/main.dart:86-96 | packages/local_auth/local_auth_android/example/lib/main.dart:87-96 | packages/local_auth/local_auth_darwin/example/lib/main.dart:87-96 — before extracting anything, compare `packages/local_auth/local_auth/example/lib/main.dart` and `packages/local_auth/local_auth_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) packages/shared_preferences/shared_preferences_foundation/example/lib/main.dart:37— packages/shared_preferences/shared_preferences_foundation/example/lib/main.dart:37-46 | packages/shared_preferences/shared_preferences_linux/example/lib/main.dart:37-46 | packages/shared_preferences/shared_preferences_windows/example/lib/main.dart:37-46 — before extracting anything, compare `packages/shared_preferences/shared_preferences_foundation/example/lib/main.dart` and `packages/shared_preferences/shared_preferences_linux/example/lib/main.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) packages/webview_flutter/webview_flutter/example/lib/main.dart:465— packages/webview_flutter/webview_flutter/example/lib/main.dart:465-474 | packages/webview_flutter/webview_flutter_android/example/lib/main.dart:524-533 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:518-527 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:639— packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:639-648 | packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart:347-356 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart:584-593 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart` and `packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:35— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:35-41 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:34-40 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:34-40 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:34-40 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:34-40 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:31-37 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:206— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:206-212 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:206-212 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:223-229 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:223-229 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:223-229 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:223-229 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:214— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:214-220 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:214-220 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:231-237 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:231-237 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:231-237 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:231-237 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:229— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:229-235 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:229-235 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:246-252 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:246-252 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:246-252 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:246-252 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:193— packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:193-199 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:201-207 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:221-227 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:221-227 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:221-227 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:221-227 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:201— packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:201-207 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:209-215 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:229-235 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:229-235 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:229-235 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:229-235 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:216— packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:216-222 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:224-230 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:244-250 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:244-250 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:244-250 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:244-250 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:259— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:259-265 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:260-266 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:260-266 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:260-266 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:260-266 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:260-266 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart:40— packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart:40-46 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/animate_camera.dart:40-46 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/animate_camera.dart:40-46 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/animate_camera.dart:40-46 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/animate_camera.dart:40-46 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/animate_camera.dart:40-46 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/animate_camera.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/animate_camera.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:141— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:141-147 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:142-148 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:139-145 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:139-145 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:139-145 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:139-145 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:135— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:135-141 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:135-141 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:152-158 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:152-158 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:152-158 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:152-158 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:244— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:244-250 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:244-250 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:261-267 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:261-267 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:261-267 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:261-267 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) packages/image_picker/image_picker/example/lib/main.dart:209— packages/image_picker/image_picker/example/lib/main.dart:209-215 | packages/image_picker/image_picker_android/example/lib/main.dart:231-237 | packages/image_picker/image_picker_ios/example/lib/main.dart:213-219 | packages/image_picker/image_picker_linux/example/lib/main.dart:206-212 | packages/image_picker/image_picker_macos/example/lib/main.dart:206-212 | packages/image_picker/image_picker_windows/example/lib/main.dart:206-212 — before extracting anything, compare `packages/image_picker/image_picker/example/lib/main.dart` and `packages/image_picker/image_picker_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 6) packages/url_launcher/url_launcher/example/lib/main.dart:124— packages/url_launcher/url_launcher/example/lib/main.dart:124-130 | packages/url_launcher/url_launcher_android/example/lib/main.dart:135-141 | packages/url_launcher/url_launcher_ios/example/lib/main.dart:91-97 | packages/url_launcher/url_launcher_linux/example/lib/main.dart:55-61 | packages/url_launcher/url_launcher_macos/example/lib/main.dart:55-61 | packages/url_launcher/url_launcher_windows/example/lib/main.dart:55-61 — before extracting anything, compare `packages/url_launcher/url_launcher/example/lib/main.dart` and `packages/url_launcher/url_launcher_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Swallowed exception (caught, then discarded) packages/cross_file/cross_file_web/lib/src/web_scoped_storage_cross_file.dart:118— `catch (exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) packages/google_fonts/lib/src/file_io_desktop_and_mobile.dart:45— `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java:127— `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) packages/image_picker/image_picker_for_web/lib/src/image_resizer.dart:36— `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) packages/in_app_purchase/in_app_purchase_storekit/lib/src/in_app_purchase_storekit_platform.dart:472— `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) packages/local_auth/local_auth_android/android/src/main/kotlin/io/flutter/plugins/localauth/LocalAuthPlugin.kt:76— `catch (_: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) packages/material_ui/lib/src/popup_menu.dart:1664— `catch (e)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) packages/pigeon/lib/src/pigeon_lib_internal.dart:2760— `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) packages/pigeon/lib/src/pigeon_lib_internal.dart:2840— `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) packages/pigeon/lib/src/pigeon_lib.dart:1052— `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) packages/pigeon/lib/src/pigeon_lib.dart:1061— `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) packages/pigeon/lib/src/generator_tools.dart:818— `catch (ex)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) packages/pigeon/lib/src/generator_tools.dart:834— `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) packages/pigeon/tool/shared/generation.dart:102— `catch (_)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Duplicated block (20 lines × 2) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:588— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:588-607 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:554-573 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 2) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:621— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:621-640 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:587-606 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 2) packages/material_ui/lib/src/checkbox_theme.dart:207— packages/material_ui/lib/src/checkbox_theme.dart:207-226 | packages/material_ui/lib/src/radio_theme.dart:227-246 — before extracting anything, compare `packages/material_ui/lib/src/checkbox_theme.dart` and `packages/material_ui/lib/src/radio_theme.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 2) packages/material_ui/lib/src/navigation_rail.dart:856— packages/material_ui/lib/src/navigation_rail.dart:856-875 | packages/material_ui/lib/src/navigation_rail.dart:915-934 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20 lines × 2) packages/pigeon/lib/src/kotlin/kotlin_generator.dart:394— packages/pigeon/lib/src/kotlin/kotlin_generator.dart:394-413 | packages/pigeon/lib/src/swift/swift_generator.dart:822-841 — `packages/pigeon/lib/src/kotlin/kotlin_generator.dart` and `packages/pigeon/lib/src/swift/swift_generator.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 78 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (20 lines × 2) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1833— packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1833-1852 | packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1963-1982 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20 lines × 2) packages/cupertino_ui/example/lib/list_section/list_section_base.0.dart:56— packages/cupertino_ui/example/lib/list_section/list_section_base.0.dart:56-75 | packages/cupertino_ui/example/lib/list_section/list_section_inset.0.dart:56-75 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (20 lines × 2) packages/go_router_builder/example/lib/all_extension_types.dart:385— packages/go_router_builder/example/lib/all_extension_types.dart:385-404 | packages/go_router_builder/example/lib/all_types.dart:515-534 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (20 lines × 2) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:107— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:107-126 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:106-125 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 2) packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.0.dart:41— packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.0.dart:41-60 | packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.1.dart:41-60 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (20 lines × 2) packages/material_ui/example/lib/dropdown_menu/dropdown_menu.2.dart:101— packages/material_ui/example/lib/dropdown_menu/dropdown_menu.2.dart:101-120 | packages/material_ui/example/lib/dropdown_menu/dropdown_menu.2.dart:131-150 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20 lines × 2) packages/material_ui/example/lib/ink/ink.image_clip.0.dart:36— packages/material_ui/example/lib/ink/ink.image_clip.0.dart:36-55 | packages/material_ui/example/lib/ink/ink.image_clip.1.dart:37-56 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (20 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/main.dart:688— packages/webview_flutter/webview_flutter_android/example/lib/main.dart:688-707 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:636-655 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 2) packages/camera/camera_android/lib/src/android_camera.dart:102— packages/camera/camera_android/lib/src/android_camera.dart:102-120 | packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart:104-122 — before extracting anything, compare `packages/camera/camera_android/lib/src/android_camera.dart` and `packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 2) packages/cupertino_ui/lib/src/date_picker.dart:1508— packages/cupertino_ui/lib/src/date_picker.dart:1508-1526 | packages/cupertino_ui/lib/src/date_picker.dart:1876-1894 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) packages/google_maps_flutter/google_maps_flutter_web/lib/src/markers.dart:309— packages/google_maps_flutter/google_maps_flutter_web/lib/src/markers.dart:309-327 | packages/google_maps_flutter/google_maps_flutter_web/lib/src/markers.dart:350-368 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) packages/material_ui/lib/src/checkbox.dart:582— packages/material_ui/lib/src/checkbox.dart:582-600 | packages/material_ui/lib/src/radio.dart:678-696 — before extracting anything, compare `packages/material_ui/lib/src/checkbox.dart` and `packages/material_ui/lib/src/radio.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 2) packages/material_ui/lib/src/slider_parts.dart:325— packages/material_ui/lib/src/slider_parts.dart:325-343 | packages/material_ui/lib/src/slider_parts.dart:459-477 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) packages/material_ui/lib/src/slider_parts.dart:428— packages/material_ui/lib/src/slider_parts.dart:428-446 | packages/material_ui/lib/src/slider_parts.dart:1063-1081 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/sensororientation/DeviceOrientationManager.java:257— packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/sensororientation/DeviceOrientationManager.java:257-275 | packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/DeviceOrientationManager.java:154-172 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/sensororientation/DeviceOrientationManager.java:257` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (19 lines × 2) packages/go_router_builder/example/lib/all_types.dart:334— packages/go_router_builder/example/lib/all_types.dart:334-352 | packages/go_router_builder/example/lib/all_types.dart:404-422 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) packages/local_auth/local_auth_android/example/lib/main.dart:173— packages/local_auth/local_auth_android/example/lib/main.dart:173-191 | packages/local_auth/local_auth_windows/example/lib/main.dart:121-139 — before extracting anything, compare `packages/local_auth/local_auth_android/example/lib/main.dart` and `packages/local_auth/local_auth_windows/example/lib/main.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 2) packages/material_ui/example/lib/menu_anchor/menu_accelerator_label.0.dart:38— packages/material_ui/example/lib/menu_anchor/menu_accelerator_label.0.dart:38-56 | packages/material_ui/example/lib/menu_anchor/menu_accelerator_label.0.dart:59-77 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) packages/material_ui/example/lib/menu_anchor/menu_anchor.0.dart:81— packages/material_ui/example/lib/menu_anchor/menu_anchor.0.dart:81-99 | packages/material_ui/example/lib/menu_anchor/menu_anchor.1.dart:89-107 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (19 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/main.dart:626— packages/webview_flutter/webview_flutter_android/example/lib/main.dart:626-644 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:573-591 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/main.dart:754— packages/webview_flutter/webview_flutter_android/example/lib/main.dart:754-772 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:702-720 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) packages/material_ui/lib/src/button.dart:510— packages/material_ui/lib/src/button.dart:510-516 | packages/material_ui/lib/src/button_style_button.dart:704-710 | packages/material_ui/lib/src/time_picker.dart:900-906 | packages/material_ui/lib/src/toggle_buttons.dart:1676-1682 — before extracting anything, compare `packages/material_ui/lib/src/button.dart` and `packages/material_ui/lib/src/button_style_button.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) packages/camera/camera/lib/src/camera_preview.dart:46— packages/camera/camera/lib/src/camera_preview.dart:46-52 | packages/camera/camera_android/example/lib/camera_preview.dart:46-52 | packages/camera/camera_android_camerax/example/lib/camera_preview.dart:46-52 | packages/camera/camera_avfoundation/example/lib/camera_preview.dart:46-52 — before extracting anything, compare `packages/camera/camera/lib/src/camera_preview.dart` and `packages/camera/camera_android_camerax/example/lib/camera_preview.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) packages/camera/camera/lib/src/camera_preview.dart:71— packages/camera/camera/lib/src/camera_preview.dart:71-77 | packages/camera/camera_android/example/lib/camera_preview.dart:71-77 | packages/camera/camera_android_camerax/example/lib/camera_preview.dart:71-77 | packages/camera/camera_avfoundation/example/lib/camera_preview.dart:71-77 — before extracting anything, compare `packages/camera/camera/lib/src/camera_preview.dart` and `packages/camera/camera_android_camerax/example/lib/camera_preview.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:349— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:349-355 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:354-360 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:354-360 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:354-360 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:533— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:533-539 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:538-544 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:538-544 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:538-544 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:609— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:609-615 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:614-620 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:614-620 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:614-620 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) packages/material_ui/lib/src/button.dart:476— packages/material_ui/lib/src/button.dart:476-482 | packages/material_ui/lib/src/button_style_button.dart:670-676 | packages/material_ui/lib/src/time_picker.dart:866-872 | packages/material_ui/lib/src/toggle_buttons.dart:1642-1648 — before extracting anything, compare `packages/material_ui/lib/src/button.dart` and `packages/material_ui/lib/src/button_style_button.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) packages/material_ui/lib/src/button.dart:484— packages/material_ui/lib/src/button.dart:484-490 | packages/material_ui/lib/src/button_style_button.dart:678-684 | packages/material_ui/lib/src/time_picker.dart:874-880 | packages/material_ui/lib/src/toggle_buttons.dart:1650-1656 — before extracting anything, compare `packages/material_ui/lib/src/button.dart` and `packages/material_ui/lib/src/button_style_button.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) packages/material_ui/lib/src/button.dart:492— packages/material_ui/lib/src/button.dart:492-498 | packages/material_ui/lib/src/button_style_button.dart:686-692 | packages/material_ui/lib/src/time_picker.dart:882-888 | packages/material_ui/lib/src/toggle_buttons.dart:1658-1664 — before extracting anything, compare `packages/material_ui/lib/src/button.dart` and `packages/material_ui/lib/src/button_style_button.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) packages/material_ui/lib/src/button.dart:500— packages/material_ui/lib/src/button.dart:500-506 | packages/material_ui/lib/src/button_style_button.dart:694-700 | packages/material_ui/lib/src/time_picker.dart:890-896 | packages/material_ui/lib/src/toggle_buttons.dart:1666-1672 — before extracting anything, compare `packages/material_ui/lib/src/button.dart` and `packages/material_ui/lib/src/button_style_button.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) packages/camera/camera/example/lib/main.dart:585— packages/camera/camera/example/lib/main.dart:585-591 | packages/camera/camera_android/example/lib/main.dart:587-593 | packages/camera/camera_android_camerax/example/lib/main.dart:578-584 | packages/camera/camera_avfoundation/example/lib/main.dart:586-592 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) packages/camera/camera/example/lib/main.dart:756— packages/camera/camera/example/lib/main.dart:756-762 | packages/camera/camera_android/example/lib/main.dart:764-770 | packages/camera/camera_android_camerax/example/lib/main.dart:754-760 | packages/camera/camera_avfoundation/example/lib/main.dart:761-767 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 6) packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart:480— packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart:480-488 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:424-432 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:421-429 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:421-429 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:421-429 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:421-429 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 6) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:612— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:612-620 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:505-513 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:510-518 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:510-518 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:510-518 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:578-586 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 6) packages/pigeon/lib/src/gobject/gobject_generator.dart:163— packages/pigeon/lib/src/gobject/gobject_generator.dart:163-171 | packages/pigeon/lib/src/gobject/gobject_generator.dart:799-807 | packages/pigeon/lib/src/java/java_generator.dart:136-144 | packages/pigeon/lib/src/kotlin/kotlin_generator.dart:256-264 | packages/pigeon/lib/src/objc/objc_generator.dart:179-187 | packages/pigeon/lib/src/objc/objc_generator.dart:469-477 — `packages/pigeon/lib/src/java/java_generator.dart` and `packages/pigeon/lib/src/kotlin/kotlin_generator.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (9 lines × 6) packages/file_selector/file_selector_linux/example/lib/open_image_page.dart:18— packages/file_selector/file_selector_linux/example/lib/open_image_page.dart:18-26 | packages/file_selector/file_selector_linux/example/lib/open_text_page.dart:15-23 | packages/file_selector/file_selector_macos/example/lib/open_image_page.dart:18-26 | packages/file_selector/file_selector_macos/example/lib/open_text_page.dart:15-23 | packages/file_selector/file_selector_windows/example/lib/open_image_page.dart:18-26 | packages/file_selector/file_selector_windows/example/lib/open_text_page.dart:15-23 — before extracting anything, compare `packages/file_selector/file_selector_linux/example/lib/open_image_page.dart` and `packages/file_selector/file_selector_macos/example/lib/open_image_page.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:196— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:196-204 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:196-204 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:213-221 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:213-221 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:213-221 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:213-221 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:183— packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:183-191 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:191-199 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:211-219 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:211-219 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:211-219 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:211-219 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:189— packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:189-197 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart:190-198 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart:190-198 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/marker_icons.dart:190-198 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/marker_icons.dart:190-198 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/marker_icons.dart:190-198 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:199— packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:199-207 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart:200-208 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart:200-208 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/marker_icons.dart:200-208 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/marker_icons.dart:200-208 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/marker_icons.dart:200-208 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:296— packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:296-304 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart:297-305 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart:297-305 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/marker_icons.dart:297-305 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/marker_icons.dart:297-305 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/marker_icons.dart:297-305 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:53— packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:53-61 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart:54-62 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/tile_overlay.dart:54-62 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/tile_overlay.dart:54-62 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/tile_overlay.dart:54-62 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/tile_overlay.dart:54-62 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 6) packages/image_picker/image_picker/example/lib/main.dart:555— packages/image_picker/image_picker/example/lib/main.dart:555-563 | packages/image_picker/image_picker_android/example/lib/main.dart:594-602 | packages/image_picker/image_picker_ios/example/lib/main.dart:512-520 | packages/image_picker/image_picker_linux/example/lib/main.dart:502-510 | packages/image_picker/image_picker_macos/example/lib/main.dart:502-510 | packages/image_picker/image_picker_windows/example/lib/main.dart:502-510 — before extracting anything, compare `packages/image_picker/image_picker/example/lib/main.dart` and `packages/image_picker/image_picker_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:247— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:247-254 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:219-226 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:224-231 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:224-231 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:224-231 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:256— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:256-263 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:228-235 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:233-240 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:233-240 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:233-240 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:265— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:265-272 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:237-244 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:242-249 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:242-249 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:242-249 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:274— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:274-281 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:246-253 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:251-258 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:251-258 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:251-258 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:283— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:283-290 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:255-262 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:260-267 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:260-267 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:260-267 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:697— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:697-704 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:581-588 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:586-593 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:586-593 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:586-593 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:742— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:742-749 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:621-628 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:626-633 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:626-633 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:626-633 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:800— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:800-807 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:677-684 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:682-689 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:682-689 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:682-689 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:351— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:351-358 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:323-330 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:328-335 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:328-335 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:328-335 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 5) packages/image_picker/image_picker_android/example/lib/main.dart:294— packages/image_picker/image_picker_android/example/lib/main.dart:294-301 | packages/image_picker/image_picker_ios/example/lib/main.dart:267-274 | packages/image_picker/image_picker_linux/example/lib/main.dart:269-276 | packages/image_picker/image_picker_macos/example/lib/main.dart:269-276 | packages/image_picker/image_picker_windows/example/lib/main.dart:269-276 — before extracting anything, compare `packages/image_picker/image_picker_android/example/lib/main.dart` and `packages/image_picker/image_picker_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 5) packages/go_router/example/lib/others/custom_stateful_shell_route.dart:188— packages/go_router/example/lib/others/custom_stateful_shell_route.dart:188-195 | packages/go_router/example/lib/push_with_shell_route.dart:68-75 | packages/go_router/example/lib/shell_route.dart:102-109 | packages/go_router/example/lib/shell_route_top_route.dart:122-129 | packages/go_router/example/lib/stateful_shell_route.dart:120-127 — before extracting anything, compare `packages/go_router/example/lib/others/custom_stateful_shell_route.dart` and `packages/go_router/example/lib/stateful_shell_route.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) packages/cupertino_ui/lib/src/segmented_control.dart:862— packages/cupertino_ui/lib/src/segmented_control.dart:862-874 | REDACTED:1525-1537 | packages/material_ui/lib/src/segmented_button.dart:1188-1200 — before extracting anything, compare `packages/cupertino_ui/lib/src/segmented_control.dart` and `REDACTED` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) packages/video_player/video_player/lib/video_player.dart:1299— packages/video_player/video_player/lib/video_player.dart:1299-1311 | packages/video_player/video_player_android/example/lib/mini_controller.dart:458-470 | packages/video_player/video_player_avfoundation/example/lib/mini_controller.dart:427-439 — before extracting anything, compare `packages/video_player/video_player_android/example/lib/mini_controller.dart` and `packages/video_player/video_player_avfoundation/example/lib/mini_controller.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift:100— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift:100-112 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/HeatmapController.swift:100-112 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/HeatmapController.swift:100-112 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/HeatmapController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:49— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:49-61 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift:49-61 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/TileOverlayController.swift:49-61 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:122— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:122-134 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:122-134 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:122-134 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) packages/file_selector/file_selector_linux/example/lib/home_page.dart:51— packages/file_selector/file_selector_linux/example/lib/home_page.dart:51-63 | packages/file_selector/file_selector_macos/example/lib/home_page.dart:51-63 | packages/file_selector/file_selector_windows/example/lib/home_page.dart:51-63 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (13 lines × 3) packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:136— packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:136-148 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:159-171 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:192-204 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) packages/image_picker/image_picker/example/lib/main.dart:133— packages/image_picker/image_picker/example/lib/main.dart:133-145 | packages/image_picker/image_picker_android/example/lib/main.dart:148-160 | packages/image_picker/image_picker_ios/example/lib/main.dart:130-142 — before extracting anything, compare `packages/image_picker/image_picker/example/lib/main.dart` and `packages/image_picker/image_picker_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) packages/video_player/video_player/example/lib/main.dart:385— packages/video_player/video_player/example/lib/main.dart:385-397 | packages/video_player/video_player_android/example/lib/main.dart:315-327 | packages/video_player/video_player_avfoundation/example/lib/main.dart:288-300 — before extracting anything, compare `packages/video_player/video_player/example/lib/main.dart` and `packages/video_player/video_player_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) packages/quick_actions/quick_actions/example/lib/main.dart:71— packages/quick_actions/quick_actions/example/lib/main.dart:71-83 | packages/quick_actions/quick_actions_android/example/lib/main.dart:62-74 | packages/quick_actions/quick_actions_ios/example/lib/main.dart:67-79 — before extracting anything, compare `packages/quick_actions/quick_actions/example/lib/main.dart` and `packages/quick_actions/quick_actions_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:182— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:182-190 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:182-190 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:182-190 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:182-190 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 4) packages/camera/camera/lib/src/camera_preview.dart:61— packages/camera/camera/lib/src/camera_preview.dart:61-69 | packages/camera/camera_android/example/lib/camera_preview.dart:61-69 | packages/camera/camera_android_camerax/example/lib/camera_preview.dart:61-69 | packages/camera/camera_avfoundation/example/lib/camera_preview.dart:61-69 — before extracting anything, compare `packages/camera/camera/lib/src/camera_preview.dart` and `packages/camera/camera_android_camerax/example/lib/camera_preview.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 4) packages/camera/camera_android/lib/src/android_camera.dart:80— packages/camera/camera_android/lib/src/android_camera.dart:80-88 | packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart:73-81 | packages/camera/camera_web/lib/src/camera_web.dart:190-198 | packages/camera/camera_windows/lib/camera_windows.dart:66-74 — before extracting anything, compare `packages/camera/camera_android/lib/src/android_camera.dart` and `packages/camera/camera_avfoundation/lib/src/avfoundation_camera.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 4) packages/material_ui/example/lib/autocomplete/autocomplete.2.dart:89— packages/material_ui/example/lib/autocomplete/autocomplete.2.dart:89-97 | packages/material_ui/example/lib/autocomplete/autocomplete.3.dart:113-121 | packages/material_ui/example/lib/search_anchor/search_anchor.3.dart:89-97 | packages/material_ui/example/lib/search_anchor/search_anchor.4.dart:118-126 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times.
Duplicated block (9 lines × 4) packages/camera/camera/example/lib/main.dart:673— packages/camera/camera/example/lib/main.dart:673-681 | packages/camera/camera_android/example/lib/main.dart:681-689 | packages/camera/camera_android_camerax/example/lib/main.dart:671-679 | packages/camera/camera_avfoundation/example/lib/main.dart:678-686 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 4) packages/camera/camera/example/lib/main.dart:683— packages/camera/camera/example/lib/main.dart:683-691 | packages/camera/camera_android/example/lib/main.dart:691-699 | packages/camera/camera_android_camerax/example/lib/main.dart:681-689 | packages/camera/camera_avfoundation/example/lib/main.dart:688-696 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 4) packages/camera/camera/example/lib/main.dart:693— packages/camera/camera/example/lib/main.dart:693-701 | packages/camera/camera_android/example/lib/main.dart:701-709 | packages/camera/camera_android_camerax/example/lib/main.dart:691-699 | packages/camera/camera_avfoundation/example/lib/main.dart:698-706 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 4) packages/material_ui/example/lib/input_decorator/input_decoration.0.dart:15— packages/material_ui/example/lib/input_decorator/input_decoration.0.dart:15-23 | packages/material_ui/example/lib/input_decorator/input_decoration.1.dart:15-23 | packages/material_ui/example/lib/input_decorator/input_decoration.2.dart:15-23 | packages/material_ui/example/lib/input_decorator/input_decoration.3.dart:15-23 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
Duplicated block (9 lines × 4) packages/material_ui/example/lib/reorderable_list/reorderable_list_view.0.dart:15— packages/material_ui/example/lib/reorderable_list/reorderable_list_view.0.dart:15-23 | packages/material_ui/example/lib/reorderable_list/reorderable_list_view.1.dart:17-25 | packages/material_ui/example/lib/reorderable_list/reorderable_list_view.2.dart:17-25 | packages/material_ui/example/lib/reorderable_list/reorderable_list_view.build_default_drag_handles.0.dart:15-23 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
Duplicated block (23 lines × 2) packages/camera/camera/lib/src/camera_preview.dart:22— packages/camera/camera/lib/src/camera_preview.dart:22-44 | packages/camera/camera_android_camerax/example/lib/camera_preview.dart:22-44 — before extracting anything, compare `packages/camera/camera/lib/src/camera_preview.dart` and `packages/camera/camera_android_camerax/example/lib/camera_preview.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 2) packages/cupertino_ui/lib/src/desktop_text_selection_toolbar.dart:131— packages/cupertino_ui/lib/src/desktop_text_selection_toolbar.dart:131-153 | packages/material_ui/lib/src/desktop_text_selection_toolbar.dart:62-84 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (23 lines × 2) packages/camera/camera_android/example/lib/camera_preview.dart:22— packages/camera/camera_android/example/lib/camera_preview.dart:22-44 | packages/camera/camera_avfoundation/example/lib/camera_preview.dart:22-44 — before extracting anything, compare `packages/camera/camera_android/example/lib/camera_preview.dart` and `packages/camera/camera_avfoundation/example/lib/camera_preview.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 2) packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart:48— packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart:48-70 | packages/google_maps_flutter/google_maps_flutter/example/lib/move_camera.dart:35-57 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (23 lines × 2) packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:150— packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:150-172 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart:147-169 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 2) packages/google_sign_in/google_sign_in_android/example/lib/main.dart:103— packages/google_sign_in/google_sign_in_android/example/lib/main.dart:103-125 | packages/google_sign_in/google_sign_in_ios/example/lib/main.dart:101-123 — before extracting anything, compare `packages/google_sign_in/google_sign_in_android/example/lib/main.dart` and `packages/google_sign_in/google_sign_in_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 2) packages/material_ui/example/lib/dialog/alert_dialog.0.dart:29— packages/material_ui/example/lib/dialog/alert_dialog.0.dart:29-51 | packages/material_ui/example/lib/dialog/alert_dialog.1.dart:30-52 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (23 lines × 2) packages/video_player/video_player/example/lib/main.dart:389— packages/video_player/video_player/example/lib/main.dart:389-411 | packages/video_player/video_player_avfoundation/example/lib/main.dart:292-314 — before extracting anything, compare `packages/video_player/video_player/example/lib/main.dart` and `packages/video_player/video_player_avfoundation/example/lib/main.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 3) packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:54— packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:54-69 | packages/image_picker/image_picker_macos/lib/image_picker_macos.dart:52-67 | packages/image_picker/image_picker_windows/lib/image_picker_windows.dart:83-98 — before extracting anything, compare `packages/image_picker/image_picker_linux/lib/image_picker_linux.dart` and `packages/image_picker/image_picker_macos/lib/image_picker_macos.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift:55— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift:55-70 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ClusterManagersController.swift:55-70 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/ClusterManagersController.swift:55-70 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ClusterManagersController.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:398— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:398-413 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:398-413 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:398-413 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:149— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:149-164 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift:149-164 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/TileOverlayController.swift:149-164 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:33— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:33-48 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift:33-48 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GroundOverlayController.swift:33-48 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 3) packages/in_app_purchase/in_app_purchase/example/lib/main.dart:385— packages/in_app_purchase/in_app_purchase/example/lib/main.dart:385-400 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:591-606 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:483-498 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase/example/lib/main.dart` and `packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 3) packages/local_auth/local_auth_android/example/lib/main.dart:59— packages/local_auth/local_auth_android/example/lib/main.dart:59-74 | packages/local_auth/local_auth_darwin/example/lib/main.dart:59-74 | packages/local_auth/local_auth_windows/example/lib/main.dart:59-74 — before extracting anything, compare `packages/local_auth/local_auth_android/example/lib/main.dart` and `packages/local_auth/local_auth_darwin/example/lib/main.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 3) packages/webview_flutter/webview_flutter/example/lib/main.dart:550— packages/webview_flutter/webview_flutter/example/lib/main.dart:550-565 | packages/webview_flutter/webview_flutter_android/example/lib/main.dart:680-695 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:628-643 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:129— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:129-134 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:106-111 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:106-111 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:106-111 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:106-111 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:233— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:233-238 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:205-210 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:210-215 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:210-215 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:210-215 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:240— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:240-245 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:212-217 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:217-222 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:217-222 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:217-222 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:390— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:390-395 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:362-367 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:367-372 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:367-372 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:367-372 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:397— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:397-402 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:369-374 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:374-379 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:374-379 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:374-379 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:1118— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:1118-1123 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:1009-1014 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:987-992 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:987-992 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:987-992 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:1125— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:1125-1130 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:1016-1021 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:994-999 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:994-999 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:994-999 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:1132— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:1132-1137 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:1023-1028 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:1001-1006 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:1001-1006 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:1001-1006 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 4) packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/ResultCompat.kt:23— packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/ResultCompat.kt:23-46 | packages/in_app_purchase/in_app_purchase_android/android/src/main/kotlin/io/flutter/plugins/inapppurchase/ResultUtils.kt:7-37 | packages/quick_actions/quick_actions_android/android/src/main/kotlin/io/flutter/plugins/quickactions/ResultUtils.kt:7-41 | packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/ResultCompat.kt:23-40 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase_android/android/src/main/kotlin/io/flutter/plugins/inapppurchase/ResultUtils.kt` and `packages/quick_actions/quick_actions_android/android/src/main/kotlin/io/flutter/plugins/quickactions/ResultUtils.kt` as WHOLE FILES: 87% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/ResultCompat.kt:23` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind `callback` to `Any` in one and `(Result<@JvmSuppressWildcards T>) -> Unit` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (18 lines × 4) packages/camera/camera/example/lib/main.dart:710— packages/camera/camera/example/lib/main.dart:710-727 | packages/camera/camera_android/example/lib/main.dart:718-735 | packages/camera/camera_android_camerax/example/lib/main.dart:708-725 | packages/camera/camera_avfoundation/example/lib/main.dart:715-732 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 4) packages/camera/camera/example/lib/main.dart:777— packages/camera/camera/example/lib/main.dart:777-794 | packages/camera/camera_android/example/lib/main.dart:785-802 | packages/camera/camera_android_camerax/example/lib/main.dart:775-792 | packages/camera/camera_avfoundation/example/lib/main.dart:782-799 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:199— packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:199-216 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart:199-216 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/clustering.dart:199-216 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart:199-216 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 172 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:51— packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:51-68 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:51-68 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:51-68 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:51-68 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 329 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 4) packages/local_auth/local_auth/example/lib/main.dart:166— packages/local_auth/local_auth/example/lib/main.dart:166-183 | packages/local_auth/local_auth_android/example/lib/main.dart:165-182 | packages/local_auth/local_auth_darwin/example/lib/main.dart:165-182 | packages/local_auth/local_auth_windows/example/lib/main.dart:113-130 — before extracting anything, compare `packages/local_auth/local_auth/example/lib/main.dart` and `packages/local_auth/local_auth_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 4) packages/material_ui/example/lib/bottom_sheet/show_bottom_sheet.0.dart:89— packages/material_ui/example/lib/bottom_sheet/show_bottom_sheet.0.dart:89-106 | packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.0.dart:41-58 | packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.1.dart:41-58 | packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.2.dart:90-107 — before extracting anything, compare `packages/material_ui/example/lib/bottom_sheet/show_bottom_sheet.0.dart` and `packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.2.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 4) packages/video_player/video_player_android/example/lib/main.dart:132— packages/video_player/video_player_android/example/lib/main.dart:132-149 | packages/video_player/video_player_android/example/lib/main.dart:191-208 | packages/video_player/video_player_avfoundation/example/lib/main.dart:137-154 | packages/video_player/video_player_avfoundation/example/lib/main.dart:196-213 — before extracting anything, compare `packages/video_player/video_player_android/example/lib/main.dart` and `packages/video_player/video_player_avfoundation/example/lib/main.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift:12— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift:12-17 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/CircleController.swift:12-17 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/CircleController.swift:12-17 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/CircleController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift:61— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift:61-66 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/CircleController.swift:61-66 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/CircleController.swift:61-66 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/CircleController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift:82— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift:82-87 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ClusterManagersController.swift:82-87 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/ClusterManagersController.swift:82-87 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ClusterManagersController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ClusterManagersController.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift:76— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift:76-81 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolygonController.swift:76-81 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/PolygonController.swift:76-81 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolygonController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift:81— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift:81-86 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolylineController.swift:81-86 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/PolylineController.swift:81-86 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolylineController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:166— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:166-171 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift:166-171 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/TileOverlayController.swift:166-171 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) packages/go_router/example/lib/named_routes.dart:111— packages/go_router/example/lib/named_routes.dart:111-116 | packages/go_router/example/lib/others/extra_param.dart:88-93 | packages/go_router/example/lib/path_and_query_parameters.dart:99-104 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (6 lines × 3) packages/webview_flutter/webview_flutter/example/lib/main.dart:539— packages/webview_flutter/webview_flutter/example/lib/main.dart:539-545 | packages/webview_flutter/webview_flutter_android/example/lib/main.dart:670-675 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:617-623 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication· Members sharing a duplicated core (12 members, 50+ identical tokens) · ×8
Members sharing a duplicated core (12 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:112— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:112-126 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:53-69 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart:101-115 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:53-69 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:100-114 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:70-86 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart:100-114 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:70-86 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_markers_clustering.dart:100-114 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:70-86 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart:100-114 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:70-86 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
Members sharing a duplicated core (12 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:128— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:128-148 | packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:115-135 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart:117-137 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart:112-132 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:116-136 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:106-126 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart:116-136 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart:106-126 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_markers_clustering.dart:116-136 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/clustering.dart:106-126 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart:116-136 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart:106-126 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
Members sharing a duplicated core (12 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:161— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:161-192 | packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:148-174 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart:151-182 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart:145-171 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:150-181 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:139-165 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart:150-181 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart:139-165 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_markers_clustering.dart:150-181 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/clustering.dart:139-165 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart:150-181 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart:139-165 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
Members sharing a duplicated core (12 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:217— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:217-301 | packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:199-278 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart:224-301 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart:205-277 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:223-299 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:199-278 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart:223-299 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart:199-278 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_markers_clustering.dart:223-299 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/clustering.dart:199-278 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart:223-299 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart:199-278 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
Members sharing a duplicated core (12 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart:48— packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart:48-197 | packages/google_maps_flutter/google_maps_flutter/example/lib/move_camera.dart:35-147 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/animate_camera.dart:48-195 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/move_camera.dart:36-148 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/animate_camera.dart:48-195 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/move_camera.dart:36-148 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/animate_camera.dart:48-195 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/move_camera.dart:36-148 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/animate_camera.dart:48-195 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/move_camera.dart:36-148 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/animate_camera.dart:48-195 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/move_camera.dart:36-148 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
Members sharing a duplicated core (12 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:151— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:151-160 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:138-147 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:151-160 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:146-155 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:168-177 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:166-175 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:168-177 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:166-175 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:168-177 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:166-175 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:168-177 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:166-175 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
Members sharing a duplicated core (12 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:171— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:171-180 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:158-167 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:171-180 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:166-175 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:188-197 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:186-195 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:188-197 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:186-195 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:188-197 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:186-195 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:188-197 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:186-195 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
Members sharing a duplicated core (12 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:249— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:249-257 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:280-288 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:250-258 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:281-289 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:250-258 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:281-289 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:250-258 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:281-289 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:250-258 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:281-289 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:250-258 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:281-289 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
Duplicated block (14 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:61— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:61-74 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:61-74 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:61-74 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:61-74 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:594— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:594-607 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:599-612 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:599-612 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:599-612 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 4) packages/camera/camera/example/lib/main.dart:658— packages/camera/camera/example/lib/main.dart:658-671 | packages/camera/camera_android/example/lib/main.dart:666-679 | packages/camera/camera_android_camerax/example/lib/main.dart:656-669 | packages/camera/camera_avfoundation/example/lib/main.dart:663-676 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 4) packages/camera/camera/example/lib/main.dart:835— packages/camera/camera/example/lib/main.dart:835-848 | packages/camera/camera_android/example/lib/main.dart:843-856 | packages/camera/camera_android_camerax/example/lib/main.dart:833-846 | packages/camera/camera_avfoundation/example/lib/main.dart:840-853 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/example/lib/maps_demo.dart:28— packages/google_maps_flutter/google_maps_flutter_ios/example/lib/maps_demo.dart:28-41 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/maps_demo.dart:28-41 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/maps_demo.dart:28-41 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/maps_demo.dart:28-41 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times.
Duplicated block (14 lines × 4) packages/camera/camera/example/lib/main.dart:850— packages/camera/camera/example/lib/main.dart:850-863 | packages/camera/camera_android/example/lib/main.dart:858-871 | packages/camera/camera_android_camerax/example/lib/main.dart:848-861 | packages/camera/camera_avfoundation/example/lib/main.dart:855-868 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 4) packages/camera/camera/example/lib/main.dart:865— packages/camera/camera/example/lib/main.dart:865-878 | packages/camera/camera_android/example/lib/main.dart:873-886 | packages/camera/camera_android_camerax/example/lib/main.dart:863-876 | packages/camera/camera_avfoundation/example/lib/main.dart:870-883 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 3) packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:123— packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:123-136 | packages/image_picker/image_picker_macos/lib/image_picker_macos.dart:124-137 | packages/image_picker/image_picker_windows/lib/image_picker_windows.dart:152-165 — before extracting anything, compare `packages/image_picker/image_picker_linux/lib/image_picker_linux.dart` and `packages/image_picker/image_picker_macos/lib/image_picker_macos.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 3) packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CameraControlProxyApi.java:74— packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CameraControlProxyApi.java:74-88 | packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CameraControlProxyApi.java:106-119 | packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CameraControlProxyApi.java:160-173 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CameraControlProxyApi.java:74` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift:35— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift:35-48 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/CircleController.swift:35-48 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/CircleController.swift:35-48 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/CircleController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/CircleController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:798— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:798-811 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:798-811 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:798-811 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 3) packages/file_selector/file_selector_android/example/lib/open_image_page.dart:39— packages/file_selector/file_selector_android/example/lib/open_image_page.dart:39-52 | packages/file_selector/file_selector_android/example/lib/open_multiple_images_page.dart:46-59 | packages/file_selector/file_selector_android/example/lib/open_text_page.dart:38-51 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (14 lines × 3) packages/go_router/example/lib/go_relative.dart:58— packages/go_router/example/lib/go_relative.dart:58-71 | packages/go_router/example/lib/on_exit.dart:77-90 | packages/go_router/example/lib/transition_animations.dart:144-157 — before extracting anything, compare `packages/go_router/example/lib/go_relative.dart` and `packages/go_router/example/lib/on_exit.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 3) packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:401— packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:401-414 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:424-437 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:447-460 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:766— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:766-775 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:644-653 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:649-658 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:649-658 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:649-658 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:1043— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:1043-1052 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:948-957 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:921-930 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:921-930 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:921-930 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 5) packages/pigeon/lib/src/cpp/cpp_generator.dart:823— packages/pigeon/lib/src/cpp/cpp_generator.dart:823-832 | packages/pigeon/lib/src/java/java_generator.dart:208-218 | packages/pigeon/lib/src/kotlin/kotlin_generator.dart:333-342 | packages/pigeon/lib/src/objc/objc_generator.dart:212-221 | packages/pigeon/lib/src/swift/swift_generator.dart:337-346 — `packages/pigeon/lib/src/java/java_generator.dart` and `packages/pigeon/lib/src/kotlin/kotlin_generator.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (10 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:821— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:821-830 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:696-705 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:701-710 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:701-710 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:701-710 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 5) packages/cross_file/cross_file/example/lib/main.dart:120— packages/cross_file/cross_file/example/lib/main.dart:120-129 | packages/cross_file/cross_file_android/example/lib/main.dart:120-129 | packages/cross_file/cross_file_darwin/example/lib/main.dart:120-129 | packages/cross_file/cross_file_io/example/lib/main.dart:120-129 | packages/cross_file/cross_file_web/example/lib/main.dart:85-94 — before extracting anything, compare `packages/cross_file/cross_file/example/lib/main.dart` and `packages/cross_file/cross_file_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:455— packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:455-464 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:452-461 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:452-461 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:452-461 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:452-461 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:525— packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:525-534 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:522-531 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:522-531 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:522-531 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:522-531 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 4) packages/material_ui/lib/src/button.dart:538— packages/material_ui/lib/src/button.dart:538-545 | packages/material_ui/lib/src/button_style_button.dart:732-739 | packages/material_ui/lib/src/time_picker.dart:930-937 | packages/material_ui/lib/src/toggle_buttons.dart:1706-1713 — before extracting anything, compare `packages/material_ui/lib/src/button.dart` and `packages/material_ui/lib/src/button_style_button.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 4) packages/url_launcher/url_launcher_ios/example/lib/main.dart:133— packages/url_launcher/url_launcher_ios/example/lib/main.dart:133-140 | packages/url_launcher/url_launcher_linux/example/lib/main.dart:73-80 | packages/url_launcher/url_launcher_macos/example/lib/main.dart:73-80 | packages/url_launcher/url_launcher_windows/example/lib/main.dart:73-80 — before extracting anything, compare `packages/url_launcher/url_launcher_linux/example/lib/main.dart` and `packages/url_launcher/url_launcher_macos/example/lib/main.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 4) packages/camera/camera/example/lib/main.dart:729— packages/camera/camera/example/lib/main.dart:729-736 | packages/camera/camera_android/example/lib/main.dart:737-744 | packages/camera/camera_android_camerax/example/lib/main.dart:727-734 | packages/camera/camera_avfoundation/example/lib/main.dart:734-741 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 4) packages/camera/camera/example/lib/main.dart:738— packages/camera/camera/example/lib/main.dart:738-745 | packages/camera/camera_android/example/lib/main.dart:746-753 | packages/camera/camera_android_camerax/example/lib/main.dart:736-743 | packages/camera/camera_avfoundation/example/lib/main.dart:743-750 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 4) packages/camera/camera/example/lib/main.dart:747— packages/camera/camera/example/lib/main.dart:747-754 | packages/camera/camera_android/example/lib/main.dart:755-762 | packages/camera/camera_android_camerax/example/lib/main.dart:745-752 | packages/camera/camera_avfoundation/example/lib/main.dart:752-759 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 4) packages/camera/camera/example/lib/main.dart:796— packages/camera/camera/example/lib/main.dart:796-803 | packages/camera/camera_android/example/lib/main.dart:804-811 | packages/camera/camera_android_camerax/example/lib/main.dart:794-801 | packages/camera/camera_avfoundation/example/lib/main.dart:801-808 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 4) packages/camera/camera/example/lib/main.dart:805— packages/camera/camera/example/lib/main.dart:805-812 | packages/camera/camera_android/example/lib/main.dart:813-820 | packages/camera/camera_android_camerax/example/lib/main.dart:803-810 | packages/camera/camera_avfoundation/example/lib/main.dart:810-817 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 5) packages/material_ui/lib/src/range_slider_parts.dart:1500— packages/material_ui/lib/src/range_slider_parts.dart:1500-1506 | packages/material_ui/lib/src/range_slider_parts.dart:1638-1644 | packages/material_ui/lib/src/slider_parts.dart:961-967 | packages/material_ui/lib/src/slider_parts.dart:1426-1432 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:490-496 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 5) packages/image_picker/image_picker_android/example/lib/main.dart:569— packages/image_picker/image_picker_android/example/lib/main.dart:569-575 | packages/image_picker/image_picker_ios/example/lib/main.dart:487-493 | packages/image_picker/image_picker_linux/example/lib/main.dart:478-484 | packages/image_picker/image_picker_macos/example/lib/main.dart:478-484 | packages/image_picker/image_picker_windows/example/lib/main.dart:478-484 — before extracting anything, compare `packages/image_picker/image_picker_android/example/lib/main.dart` and `packages/image_picker/image_picker_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 5) packages/extension_google_sign_in_as_googleapis_auth/example/lib/main.dart:200— packages/extension_google_sign_in_as_googleapis_auth/example/lib/main.dart:200-206 | packages/google_sign_in/google_sign_in/example/lib/main.dart:317-323 | packages/google_sign_in/google_sign_in_android/example/lib/main.dart:212-218 | packages/google_sign_in/google_sign_in_ios/example/lib/main.dart:210-216 | packages/google_sign_in/google_sign_in_web/example/lib/button_tester.dart:85-91 — before extracting anything, compare `packages/google_sign_in/google_sign_in_android/example/lib/main.dart` and `packages/google_sign_in/google_sign_in_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:466— packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:466-472 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:463-469 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:463-469 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:463-469 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:463-469 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:494— packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:494-500 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:491-497 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:491-497 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:491-497 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:491-497 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:512— packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:512-518 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:509-515 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:509-515 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:509-515 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:509-515 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_coordinates.dart:79— packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_coordinates.dart:79-85 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_coordinates.dart:83-89 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_coordinates.dart:83-89 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_coordinates.dart:83-89 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_coordinates.dart:83-89 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_coordinates.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_coordinates.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 4) packages/camera/camera/example/lib/main.dart:764— packages/camera/camera/example/lib/main.dart:764-775 | packages/camera/camera_android/example/lib/main.dart:772-783 | packages/camera/camera_android_camerax/example/lib/main.dart:762-773 | packages/camera/camera_avfoundation/example/lib/main.dart:769-780 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 4) packages/file_selector/file_selector_android/example/lib/open_image_page.dart:16— packages/file_selector/file_selector_android/example/lib/open_image_page.dart:16-27 | packages/file_selector/file_selector_android/example/lib/open_text_page.dart:15-26 | packages/file_selector/file_selector_ios/example/lib/open_image_page.dart:18-29 | packages/file_selector/file_selector_ios/example/lib/open_text_page.dart:15-26 — before extracting anything, compare `packages/file_selector/file_selector_android/example/lib/open_text_page.dart` and `packages/file_selector/file_selector_ios/example/lib/open_text_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 4) packages/go_router/example/lib/go_relative.dart:55— packages/go_router/example/lib/go_relative.dart:55-66 | packages/go_router/example/lib/on_exit.dart:74-85 | packages/go_router/example/lib/transition_animations.dart:107-118 | packages/go_router/example/lib/transition_animations.dart:141-152 — before extracting anything, compare `packages/go_router/example/lib/go_relative.dart` and `packages/go_router/example/lib/on_exit.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 4) packages/local_auth/local_auth_android/example/lib/main.dart:90— packages/local_auth/local_auth_android/example/lib/main.dart:90-101 | packages/local_auth/local_auth_android/example/lib/main.dart:131-142 | packages/local_auth/local_auth_darwin/example/lib/main.dart:90-101 | packages/local_auth/local_auth_darwin/example/lib/main.dart:131-142 — before extracting anything, compare `packages/local_auth/local_auth_android/example/lib/main.dart` and `packages/local_auth/local_auth_darwin/example/lib/main.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 4) packages/camera/camera/example/lib/main.dart:880— packages/camera/camera/example/lib/main.dart:880-891 | packages/camera/camera_android/example/lib/main.dart:888-899 | packages/camera/camera_android_camerax/example/lib/main.dart:878-889 | packages/camera/camera_avfoundation/example/lib/main.dart:885-896 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 4) packages/camera/camera/example/lib/main.dart:893— packages/camera/camera/example/lib/main.dart:893-904 | packages/camera/camera_android/example/lib/main.dart:901-912 | packages/camera/camera_android_camerax/example/lib/main.dart:891-902 | packages/camera/camera_avfoundation/example/lib/main.dart:898-909 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 4) packages/camera/camera/example/lib/main.dart:922— packages/camera/camera/example/lib/main.dart:922-933 | packages/camera/camera_android/example/lib/main.dart:930-941 | packages/camera/camera_android_camerax/example/lib/main.dart:920-931 | packages/camera/camera_avfoundation/example/lib/main.dart:927-938 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 2) packages/cupertino_ui/lib/src/switch.dart:1174— packages/cupertino_ui/lib/src/switch.dart:1174-1195 | packages/material_ui/lib/src/switch.dart:1634-1655 — before extracting anything, compare `packages/cupertino_ui/lib/src/switch.dart` and `packages/material_ui/lib/src/switch.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 2) packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:29— packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:29-50 | packages/image_picker/image_picker_windows/lib/image_picker_windows.dart:58-79 — before extracting anything, compare `packages/image_picker/image_picker_linux/lib/image_picker_linux.dart` and `packages/image_picker/image_picker_windows/lib/image_picker_windows.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 2) packages/material_ui/lib/src/range_slider_parts.dart:861— packages/material_ui/lib/src/range_slider_parts.dart:861-882 | packages/material_ui/lib/src/slider_parts.dart:751-772 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 2) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:2255— packages/two_dimensional_scrollables/lib/src/table_view/table.dart:2255-2276 | packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart:671-692 — before extracting anything, compare `packages/two_dimensional_scrollables/lib/src/table_view/table.dart` and `packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 2) packages/interactive_media_ads/example/lib/readme_example.dart:162— packages/interactive_media_ads/example/lib/readme_example.dart:162-183 | packages/interactive_media_ads/example/lib/video_ad_example_screen.dart:170-191 — before extracting anything, compare `packages/interactive_media_ads/example/lib/readme_example.dart` and `packages/interactive_media_ads/example/lib/video_ad_example_screen.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 2) packages/video_player/video_player/example/lib/audio_tracks_demo.dart:260— packages/video_player/video_player/example/lib/audio_tracks_demo.dart:260-281 | packages/video_player/video_player/example/lib/video_tracks_demo.dart:314-335 — before extracting anything, compare `packages/video_player/video_player/example/lib/audio_tracks_demo.dart` and `packages/video_player/video_player/example/lib/video_tracks_demo.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 3) packages/file_selector/file_selector_linux/lib/file_selector_linux.dart:59— packages/file_selector/file_selector_linux/lib/file_selector_linux.dart:59-75 | packages/file_selector/file_selector_macos/lib/file_selector_macos.dart:65-81 | packages/file_selector/file_selector_windows/lib/file_selector_windows.dart:54-70 — before extracting anything, compare `packages/file_selector/file_selector_linux/lib/file_selector_linux.dart` and `packages/file_selector/file_selector_macos/lib/file_selector_macos.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:730— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:730-746 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:730-746 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:730-746 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 3) packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.0.dart:45— packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.0.dart:45-61 | packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.1.dart:40-56 | packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.2.dart:52-68 — before extracting anything, compare `packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.0.dart` and `packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.2.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 3) packages/file_selector/file_selector_linux/example/lib/get_directory_page.dart:35— packages/file_selector/file_selector_linux/example/lib/get_directory_page.dart:35-51 | packages/file_selector/file_selector_macos/example/lib/get_directory_page.dart:35-51 | packages/file_selector/file_selector_windows/example/lib/get_directory_page.dart:35-51 — before extracting anything, compare `packages/file_selector/file_selector_linux/example/lib/get_directory_page.dart` and `packages/file_selector/file_selector_macos/example/lib/get_directory_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 3) packages/url_launcher/url_launcher/example/lib/main.dart:142— packages/url_launcher/url_launcher/example/lib/main.dart:142-158 | packages/url_launcher/url_launcher_android/example/lib/main.dart:155-171 | packages/url_launcher/url_launcher_ios/example/lib/main.dart:109-125 — before extracting anything, compare `packages/url_launcher/url_launcher/example/lib/main.dart` and `packages/url_launcher/url_launcher_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 3) packages/webview_flutter/webview_flutter/example/lib/main.dart:271— packages/webview_flutter/webview_flutter/example/lib/main.dart:271-287 | packages/webview_flutter/webview_flutter_android/example/lib/main.dart:296-312 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:301-317 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:181— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:181-192 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:195-206 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:195-206 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:195-206 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:195-206 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:294— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:294-305 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:266-277 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:271-282 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:271-282 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:271-282 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 5) packages/image_picker/image_picker_android/example/lib/main.dart:78— packages/image_picker/image_picker_android/example/lib/main.dart:78-89 | packages/image_picker/image_picker_ios/example/lib/main.dart:60-71 | packages/image_picker/image_picker_linux/example/lib/main.dart:60-71 | packages/image_picker/image_picker_macos/example/lib/main.dart:60-71 | packages/image_picker/image_picker_windows/example/lib/main.dart:60-71 — before extracting anything, compare `packages/image_picker/image_picker_android/example/lib/main.dart` and `packages/image_picker/image_picker_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 5) packages/shared_preferences/shared_preferences/example/lib/main.dart:106— packages/shared_preferences/shared_preferences/example/lib/main.dart:106-117 | packages/shared_preferences/shared_preferences_android/example/lib/main.dart:78-89 | packages/shared_preferences/shared_preferences_foundation/example/lib/main.dart:68-79 | packages/shared_preferences/shared_preferences_linux/example/lib/main.dart:68-79 | packages/shared_preferences/shared_preferences_windows/example/lib/main.dart:68-79 — before extracting anything, compare `packages/shared_preferences/shared_preferences_foundation/example/lib/main.dart` and `packages/shared_preferences/shared_preferences_linux/example/lib/main.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:442— packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:442-453 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:439-450 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:439-450 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:439-450 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:439-450 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:324— packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:324-335 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:310-321 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:310-321 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:310-321 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:310-321 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 6) packages/image_picker/image_picker_android/lib/image_picker_android.dart:76— packages/image_picker/image_picker_android/lib/image_picker_android.dart:76-86 | packages/image_picker/image_picker_android/lib/image_picker_android.dart:107-117 | packages/image_picker/image_picker_android/lib/image_picker_android.dart:281-291 | packages/image_picker/image_picker_ios/lib/image_picker_ios.dart:195-205 | packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:63-73 | packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:92-102 — before extracting anything, compare `packages/image_picker/image_picker_android/lib/image_picker_android.dart` and `packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 6) packages/material_ui/lib/src/range_slider_parts.dart:1265— packages/material_ui/lib/src/range_slider_parts.dart:1265-1275 | packages/material_ui/lib/src/range_slider_parts.dart:1341-1351 | packages/material_ui/lib/src/slider_parts.dart:789-799 | packages/material_ui/lib/src/slider_parts.dart:1271-1281 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:247-257 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:516-526 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:164— packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:164-174 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart:161-171 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:155-165 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart:155-165 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/clustering.dart:155-165 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart:155-165 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:179— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:179-189 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:124-134 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:112-122 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:112-122 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:112-122 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:112-122 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:297— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:297-307 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:240-250 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:228-238 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:228-238 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:228-238 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:228-238 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 6) packages/image_picker/image_picker/example/lib/main.dart:228— packages/image_picker/image_picker/example/lib/main.dart:228-238 | packages/image_picker/image_picker_android/example/lib/main.dart:250-260 | packages/image_picker/image_picker_ios/example/lib/main.dart:232-242 | packages/image_picker/image_picker_linux/example/lib/main.dart:225-235 | packages/image_picker/image_picker_macos/example/lib/main.dart:225-235 | packages/image_picker/image_picker_windows/example/lib/main.dart:225-235 — before extracting anything, compare `packages/image_picker/image_picker/example/lib/main.dart` and `packages/image_picker/image_picker_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 6) packages/cross_file/cross_file/example/lib/main.dart:82— packages/cross_file/cross_file/example/lib/main.dart:82-93 | packages/cross_file/cross_file_android/example/lib/main.dart:82-93 | packages/cross_file/cross_file_darwin/example/lib/main.dart:82-93 | packages/cross_file/cross_file_io/example/lib/main.dart:82-93 | packages/cross_file/cross_file_web/example/lib/main.dart:55-66 | packages/file_selector/file_selector_android/example/lib/open_text_page.dart:42-53 — before extracting anything, compare `packages/cross_file/cross_file/example/lib/main.dart` and `packages/cross_file/cross_file_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:99— packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:99-110 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:49-60 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:57-68 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:57-68 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:57-68 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:57-68 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 205 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:218— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:218-229 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:220-231 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:203-214 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:203-214 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:203-214 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:203-214 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:166— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:166-177 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:111-122 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:99-110 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:99-110 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:99-110 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:99-110 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:69— packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:69-80 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart:70-81 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/tile_overlay.dart:70-81 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/tile_overlay.dart:70-81 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/tile_overlay.dart:70-81 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/tile_overlay.dart:70-81 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 6) packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart:96— packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart:96-107 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:57-68 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:90-101 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart:90-101 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/clustering.dart:90-101 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart:90-101 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Change coupling: AdsRequestProxyApi.kt ↔ AdsRequestProxyAPIDelegate.swift packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/AdsRequestProxyApi.kt:1— `packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/AdsRequestProxyApi.kt` and `packages/interactive_media_ads/ios/interactive_media_ads/Sources/interactive_media_ads/AdsRequestProxyAPIDelegate.swift` change together 71% of the time (37 of the 52 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 37 shared commits counted here, the most recent 3 are `f2f1c286` Enable Built-in Kotlin for `interactive_media_ads` (#12912); `062c8d4f` [interactive_media_ads] Updates `README` to recommend that a single `…; `0718bf1e` [interactive_media_ads] Pin iOS dependency maximum (#10349) — run `git show` on any of them.
Change coupling: StoreKit2Translators.swift ↔ sk2_product_wrapper.dart packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/StoreKit2Translators.swift:1— `packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/StoreKit2Translators.swift` and `packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_2_wrappers/sk2_product_wrapper.dart` change together 67% of the time (8 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `c7a25fa3` [In_app_purchase_storekit] Do not throw PigeonError when a transactio…; `a06b67bd` [in_app_purchase_storekit] Add support to win back offers / promotion…; `e19503e8` [in_app_purchase_storekit] Add support for purchase and transactions … (at that commit the file was still `packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/StoreKit2/StoreKit2Translators.swift`) — run `git show` on any of them.
Change coupling: sk2_product_wrapper.dart ↔ sk2_transaction_wrapper.dart packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_2_wrappers/sk2_product_wrapper.dart:1— `packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_2_wrappers/sk2_product_wrapper.dart` and `packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_2_wrappers/sk2_transaction_wrapper.dart` change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `e186c0a0` [in_app_purchase] Remove use of Pigeon's Dart test generator (#10328); `dafd7530` [in_app_purchase] Update iOS Pigeon for non-nullable generics (#7820); `e19503e8` [in_app_purchase_storekit] Add support for purchase and transactions … — run `git show` on any of them.
Change coupling: google_sign_in_android.dart ↔ google_sign_in_ios.dart packages/google_sign_in/google_sign_in_android/lib/google_sign_in_android.dart:1— `packages/google_sign_in/google_sign_in_android/lib/google_sign_in_android.dart` and `packages/google_sign_in/google_sign_in_ios/lib/google_sign_in_ios.dart` change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are `fdee698f` [google_sign_in] Implement clearAuthorizationToken (#10024); `f5f9113b` [google_sign_in] Add Android account name field as optional (implemen…; `bff79f6a` [google_sign_in] Correct clearAuthCache declarations (#5693) — run `git show` on any of them.
Change coupling: StoreKit2Translators.swift ↔ sk2_transaction_wrapper.dart packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/StoreKit2Translators.swift:1— `packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/StoreKit2Translators.swift` and `packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_2_wrappers/sk2_transaction_wrapper.dart` change together 53% of the time (8 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `ff15dfdb` [in_app_purchase]Fixes StoreKit 2 purchase flow to send cancelled/pen…; `c77ab99a` [in_app_purchase] Add expiration date to Transaction (#8030) (at that commit the file was still `packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/StoreKit2/StoreKit2Translators.swift`); `01050136` [in_app_purchase_storekit] Add restore purchases and receipts (#7964) (at that commit the file was still `packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/StoreKit2/StoreKit2Translators.swift`) — run `git show` on any of them.
Duplicated block (37 lines × 2) packages/cupertino_ui/lib/src/switch.dart:1380— packages/cupertino_ui/lib/src/switch.dart:1380-1416 | packages/material_ui/lib/src/switch.dart:1801-1837 — before extracting anything, compare `packages/cupertino_ui/lib/src/switch.dart` and `packages/material_ui/lib/src/switch.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (37 lines × 2) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:832— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:832-868 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:713-749 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (37 lines × 2) packages/google_maps_flutter/google_maps_flutter_web/lib/src/marker.dart:131— packages/google_maps_flutter/google_maps_flutter_web/lib/src/marker.dart:131-167 | packages/google_maps_flutter/google_maps_flutter_web/lib/src/marker.dart:238-274 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (37 lines × 2) packages/webview_flutter/webview_flutter_android/lib/src/android_webview_controller.dart:1361— packages/webview_flutter/webview_flutter_android/lib/src/android_webview_controller.dart:1361-1397 | packages/webview_flutter/webview_flutter_android/lib/src/legacy/webview_android_widget.dart:472-508 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (37 lines × 2) packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:40— packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:40-76 | packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:83-119 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:40` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `decisionHandler` to `@escaping @MainActor (WKPermissionDecision) -> Void` in one and `@escaping (WKPermissionDecision) -> Void` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:78` calls `available` and `packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift:123` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (19 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:79— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:79-97 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:79-97 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:79-97 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:79-97 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:513— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:513-531 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:518-536 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:518-536 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:518-536 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:638— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:638-656 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:643-661 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:643-661 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:643-661 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 4) packages/camera/camera/example/lib/main.dart:439— packages/camera/camera/example/lib/main.dart:439-457 | packages/camera/camera_android/example/lib/main.dart:443-461 | packages/camera/camera_android_camerax/example/lib/main.dart:446-464 | packages/camera/camera_avfoundation/example/lib/main.dart:443-461 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:223— packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:223-241 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart:223-241 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_markers_clustering.dart:223-241 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart:223-241 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 6) packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart:456— packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart:456-472 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:401-417 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:398-414 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:398-414 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:398-414 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:398-414 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 6) packages/file_selector/file_selector/example/lib/open_text_page.dart:50— packages/file_selector/file_selector/example/lib/open_text_page.dart:50-66 | packages/file_selector/file_selector_ios/example/lib/open_any_page.dart:33-49 | packages/file_selector/file_selector_ios/example/lib/open_text_page.dart:42-58 | packages/file_selector/file_selector_linux/example/lib/open_text_page.dart:38-54 | packages/file_selector/file_selector_macos/example/lib/open_text_page.dart:38-54 | packages/file_selector/file_selector_windows/example/lib/open_text_page.dart:38-54 — before extracting anything, compare `packages/file_selector/file_selector/example/lib/open_text_page.dart` and `packages/file_selector/file_selector_ios/example/lib/open_text_page.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/collision_behavior.dart:48— packages/google_maps_flutter/google_maps_flutter/example/lib/collision_behavior.dart:48-64 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/collision_behavior.dart:49-65 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/collision_behavior.dart:49-65 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/collision_behavior.dart:49-65 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/collision_behavior.dart:49-65 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/collision_behavior.dart:49-65 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times.
Duplicated block (17 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart:28— packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart:28-44 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/scrolling_map.dart:29-45 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/scrolling_map.dart:29-45 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/scrolling_map.dart:29-45 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/scrolling_map.dart:29-45 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/scrolling_map.dart:29-45 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/scrolling_map.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart:55— packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart:55-71 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/scrolling_map.dart:56-72 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/scrolling_map.dart:56-72 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/scrolling_map.dart:56-72 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/scrolling_map.dart:56-72 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/scrolling_map.dart:56-72 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/scrolling_map.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 6) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:623— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:623-637 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:515-529 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:520-534 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:520-534 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:520-534 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:589-603 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 6) packages/file_selector/file_selector/example/lib/open_text_page.dart:30— packages/file_selector/file_selector/example/lib/open_text_page.dart:30-44 | packages/file_selector/file_selector_android/example/lib/open_text_page.dart:22-36 | packages/file_selector/file_selector_ios/example/lib/open_text_page.dart:22-36 | packages/file_selector/file_selector_linux/example/lib/open_text_page.dart:18-32 | packages/file_selector/file_selector_macos/example/lib/open_text_page.dart:18-32 | packages/file_selector/file_selector_windows/example/lib/open_text_page.dart:18-32 — before extracting anything, compare `packages/file_selector/file_selector/example/lib/open_text_page.dart` and `packages/file_selector/file_selector_ios/example/lib/open_text_page.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:157— packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:157-171 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart:158-172 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart:158-172 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/marker_icons.dart:158-172 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/marker_icons.dart:158-172 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/marker_icons.dart:158-172 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:82— packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:82-96 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart:83-97 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/tile_overlay.dart:83-97 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/tile_overlay.dart:83-97 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/tile_overlay.dart:83-97 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/tile_overlay.dart:83-97 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 6) packages/video_player/video_player/example/lib/main.dart:261— packages/video_player/video_player/example/lib/main.dart:261-275 | packages/video_player/video_player/example/lib/main.dart:330-344 | packages/video_player/video_player_android/example/lib/main.dart:125-139 | packages/video_player/video_player_android/example/lib/main.dart:184-198 | packages/video_player/video_player_avfoundation/example/lib/main.dart:130-144 | packages/video_player/video_player_avfoundation/example/lib/main.dart:189-203 — before extracting anything, compare `packages/video_player/video_player/example/lib/main.dart` and `packages/video_player/video_player_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 4) packages/material_ui/lib/src/checkbox_theme.dart:232— packages/material_ui/lib/src/checkbox_theme.dart:232-246 | packages/material_ui/lib/src/chip_theme.dart:572-586 | packages/material_ui/lib/src/radio_theme.dart:136-150 | packages/material_ui/lib/src/search_view_theme.dart:227-241 — before extracting anything, compare `packages/material_ui/lib/src/checkbox_theme.dart` and `packages/material_ui/lib/src/radio_theme.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 4) packages/camera/camera/example/lib/main.dart:115— packages/camera/camera/example/lib/main.dart:115-129 | packages/camera/camera_android/example/lib/main.dart:114-128 | packages/camera/camera_android_camerax/example/lib/main.dart:114-128 | packages/camera/camera_avfoundation/example/lib/main.dart:114-128 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 4) packages/camera/camera/example/lib/main.dart:906— packages/camera/camera/example/lib/main.dart:906-920 | packages/camera/camera_android/example/lib/main.dart:914-928 | packages/camera/camera_android_camerax/example/lib/main.dart:904-918 | packages/camera/camera_avfoundation/example/lib/main.dart:911-925 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/example/lib/lite_mode.dart:30— packages/google_maps_flutter/google_maps_flutter_ios/example/lib/lite_mode.dart:30-44 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/lite_mode.dart:30-44 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/lite_mode.dart:30-44 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/lite_mode.dart:30-44 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times.
Duplicated block (15 lines × 4) packages/local_auth/local_auth/example/lib/main.dart:100— packages/local_auth/local_auth/example/lib/main.dart:100-114 | packages/local_auth/local_auth_android/example/lib/main.dart:100-114 | packages/local_auth/local_auth_darwin/example/lib/main.dart:100-114 | packages/local_auth/local_auth_windows/example/lib/main.dart:97-111 — before extracting anything, compare `packages/local_auth/local_auth/example/lib/main.dart` and `packages/local_auth/local_auth_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 3) packages/cupertino_ui/lib/src/date_picker.dart:1272— packages/cupertino_ui/lib/src/date_picker.dart:1272-1286 | packages/cupertino_ui/lib/src/date_picker.dart:1728-1742 | packages/cupertino_ui/lib/src/date_picker.dart:2067-2081 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15 lines × 3) packages/vector_graphics_compiler/lib/src/svg/clipping_optimizer.dart:206— packages/vector_graphics_compiler/lib/src/svg/clipping_optimizer.dart:206-220 | packages/vector_graphics_compiler/lib/src/svg/masking_optimizer.dart:305-319 | packages/vector_graphics_compiler/lib/src/svg/overdraw_optimizer.dart:315-329 — before extracting anything, compare `packages/vector_graphics_compiler/lib/src/svg/clipping_optimizer.dart` and `packages/vector_graphics_compiler/lib/src/svg/masking_optimizer.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 3) packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/Camera2CameraControlProxyApi.java:52— packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/Camera2CameraControlProxyApi.java:52-66 | packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CameraControlProxyApi.java:42-56 | packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/CameraControlProxyApi.java:128-142 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `packages/camera/camera_android_camerax/android/src/main/java/io/flutter/plugins/camerax/Camera2CameraControlProxyApi.java:52` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 3) packages/material_ui/example/lib/dropdown_menu/dropdown_menu.2.dart:64— packages/material_ui/example/lib/dropdown_menu/dropdown_menu.2.dart:64-78 | packages/material_ui/example/lib/dropdown_menu/dropdown_menu.2.dart:93-107 | packages/material_ui/example/lib/dropdown_menu/dropdown_menu.2.dart:123-137 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15 lines × 3) packages/url_launcher/url_launcher_linux/example/lib/main.dart:39— packages/url_launcher/url_launcher_linux/example/lib/main.dart:39-53 | packages/url_launcher/url_launcher_macos/example/lib/main.dart:39-53 | packages/url_launcher/url_launcher_windows/example/lib/main.dart:39-53 — before extracting anything, compare `packages/url_launcher/url_launcher_linux/example/lib/main.dart` and `packages/url_launcher/url_launcher_macos/example/lib/main.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 5) packages/cupertino_ui/lib/src/search_field.dart:457— packages/cupertino_ui/lib/src/search_field.dart:457-465 | packages/cupertino_ui/lib/src/text_field.dart:1248-1256 | packages/cupertino_ui/lib/src/text_form_field_row.dart:331-339 | packages/material_ui/lib/src/text_field.dart:1389-1397 | packages/material_ui/lib/src/text_form_field.dart:385-393 — before extracting anything, compare `packages/cupertino_ui/lib/src/text_field.dart` and `packages/material_ui/lib/src/text_field.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 5) packages/image_picker/image_picker/example/lib/main.dart:248— packages/image_picker/image_picker/example/lib/main.dart:248-256 | packages/image_picker/image_picker_android/example/lib/main.dart:270-278 | packages/image_picker/image_picker_linux/example/lib/main.dart:245-253 | packages/image_picker/image_picker_macos/example/lib/main.dart:245-253 | packages/image_picker/image_picker_windows/example/lib/main.dart:245-253 — before extracting anything, compare `packages/image_picker/image_picker/example/lib/main.dart` and `packages/image_picker/image_picker_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:474— packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:474-482 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:471-479 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:471-479 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:471-479 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:471-479 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:484— packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:484-492 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:481-489 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:481-489 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:481-489 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:481-489 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:502— packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:502-510 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:499-507 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:499-507 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:499-507 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:499-507 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:49— packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:49-62 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart:50-63 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart:50-63 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/marker_icons.dart:50-63 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/marker_icons.dart:50-63 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/marker_icons.dart:50-63 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:209— packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:209-222 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart:210-223 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart:210-223 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/marker_icons.dart:210-223 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/marker_icons.dart:210-223 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/marker_icons.dart:210-223 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:186— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:186-199 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:187-200 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:187-200 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:187-200 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:187-200 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:187-200 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 183 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:151— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:151-164 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:96-109 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:84-97 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:84-97 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:84-97 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:84-97 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:122— packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:122-135 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart:123-136 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart:123-136 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/marker_icons.dart:123-136 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/marker_icons.dart:123-136 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/marker_icons.dart:123-136 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 6) packages/file_selector/file_selector/example/lib/main.dart:24— packages/file_selector/file_selector/example/lib/main.dart:24-36 | packages/file_selector/file_selector_android/example/lib/main.dart:32-44 | packages/file_selector/file_selector_ios/example/lib/main.dart:22-34 | packages/file_selector/file_selector_linux/example/lib/main.dart:24-36 | packages/file_selector/file_selector_macos/example/lib/main.dart:24-36 | packages/file_selector/file_selector_windows/example/lib/main.dart:24-36 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times.
Duplicated block (13 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:266— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:266-278 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:267-279 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:267-279 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:267-279 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:267-279 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:267-279 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:163— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:163-175 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:164-176 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:147-159 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:147-159 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:147-159 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:147-159 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:177— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:177-189 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:178-190 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:161-173 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:161-173 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:161-173 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:161-173 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 6) packages/image_picker/image_picker/example/lib/main.dart:577— packages/image_picker/image_picker/example/lib/main.dart:577-589 | packages/image_picker/image_picker_android/example/lib/main.dart:616-628 | packages/image_picker/image_picker_ios/example/lib/main.dart:534-546 | packages/image_picker/image_picker_linux/example/lib/main.dart:524-536 | packages/image_picker/image_picker_macos/example/lib/main.dart:524-536 | packages/image_picker/image_picker_windows/example/lib/main.dart:524-536 — before extracting anything, compare `packages/image_picker/image_picker/example/lib/main.dart` and `packages/image_picker/image_picker_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
GoogleMapsFlutterIOS.platformBitmapFromBitmapDescriptor (cyclomatic 17) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:814— GoogleMapsFlutterIOS.platformBitmapFromBitmapDescriptor has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
GoogleMapsFlutterIOS.platformBitmapFromBitmapDescriptor (cyclomatic 17) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:805— GoogleMapsFlutterIOS.platformBitmapFromBitmapDescriptor has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
GoogleMapsFlutterIOS.platformBitmapFromBitmapDescriptor (cyclomatic 17) packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:805— GoogleMapsFlutterIOS.platformBitmapFromBitmapDescriptor has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
GoogleMapsFlutterIOS.platformBitmapFromBitmapDescriptor (cyclomatic 17) packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:805— GoogleMapsFlutterIOS.platformBitmapFromBitmapDescriptor has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D4 · Code Duplication· Members sharing a duplicated core (8 members, 50+ identical tokens) · ×4
Members sharing a duplicated core (8 members, 50+ identical tokens) packages/material_ui/lib/src/slider_parts.dart:720— packages/material_ui/lib/src/slider_parts.dart:720-772 | packages/material_ui/lib/src/slider_parts.dart:801-829 | packages/material_ui/lib/src/slider_parts.dart:998-1032 | packages/material_ui/lib/src/slider_parts.dart:1283-1311 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:156-172 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:205-228 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:259-287 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:528-558 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
Members sharing a duplicated core (8 members, 50+ identical tokens) packages/cross_file/cross_file/example/lib/main.dart:78— packages/cross_file/cross_file/example/lib/main.dart:78-106 | packages/cross_file/cross_file_android/example/lib/main.dart:78-106 | packages/cross_file/cross_file_darwin/example/lib/main.dart:78-106 | packages/cross_file/cross_file_io/example/lib/main.dart:78-106 | packages/cross_file/cross_file_web/example/lib/main.dart:51-71 | packages/file_selector/file_selector_android/example/lib/open_image_page.dart:39-59 | packages/file_selector/file_selector_android/example/lib/open_multiple_images_page.dart:46-66 | packages/file_selector/file_selector_android/example/lib/open_text_page.dart:38-58 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
Members sharing a duplicated core (8 members, 50+ identical tokens) packages/go_router/example/lib/others/error_screen.dart:41— packages/go_router/example/lib/others/error_screen.dart:41-52 | packages/go_router/example/lib/others/error_screen.dart:60-71 | packages/go_router/example/lib/others/init_loc.dart:45-56 | packages/go_router/example/lib/others/init_loc.dart:64-75 | packages/go_router/example/lib/others/init_loc.dart:83-94 | packages/go_router/example/lib/others/nav_observer.dart:142-153 | packages/go_router/example/lib/others/router_neglect.dart:43-62 | packages/go_router/example/lib/others/router_neglect.dart:70-81 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
Members sharing a duplicated core (8 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:77— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:77-104 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:73-100 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:77-104 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:81-108 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:94-121 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:94-121 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:94-121 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:94-121 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
Duplicated block (29 lines × 2) packages/cupertino_ui/lib/src/date_picker.dart:2796— packages/cupertino_ui/lib/src/date_picker.dart:2796-2824 | packages/cupertino_ui/lib/src/date_picker.dart:2842-2870 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (29 lines × 2) packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/platformview/PlatformViewVideoPlayer.java:56— packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/platformview/PlatformViewVideoPlayer.java:56-84 | packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/texture/TextureVideoPlayer.java:56-84 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/platformview/PlatformViewVideoPlayer.java:56` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (29 lines × 2) packages/google_sign_in/google_sign_in_android/example/lib/main.dart:182— packages/google_sign_in/google_sign_in_android/example/lib/main.dart:182-210 | packages/google_sign_in/google_sign_in_ios/example/lib/main.dart:180-208 — before extracting anything, compare `packages/google_sign_in/google_sign_in_android/example/lib/main.dart` and `packages/google_sign_in/google_sign_in_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (29 lines × 2) packages/material_ui/example/lib/app_bar/sliver_app_bar.2.dart:25— packages/material_ui/example/lib/app_bar/sliver_app_bar.2.dart:25-53 | packages/material_ui/example/lib/app_bar/sliver_app_bar.3.dart:25-53 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (24 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:497— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:497-520 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:422-445 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:427-450 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:427-450 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:427-450 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:134— packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:134-157 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart:134-157 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_circle.dart:134-157 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_circle.dart:134-157 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_circle.dart:134-157 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 176 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:157— packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:157-180 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:157-180 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:157-180 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:157-180 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:157-180 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 234 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/snapshot.dart:39— packages/google_maps_flutter/google_maps_flutter_android/example/lib/snapshot.dart:39-62 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/snapshot.dart:39-62 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/snapshot.dart:39-62 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/snapshot.dart:39-62 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/snapshot.dart:39-62 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 5 times.
Duplicated block (24 lines × 2) packages/material_ui/lib/src/about.dart:433— packages/material_ui/lib/src/about.dart:433-456 | packages/material_ui/lib/src/about.dart:581-604 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (24 lines × 2) packages/material_ui/lib/src/date_picker_theme.dart:1170— packages/material_ui/lib/src/date_picker_theme.dart:1170-1193 | packages/material_ui/lib/src/date_picker_theme.dart:1241-1264 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (24 lines × 2) packages/go_router/example/lib/go_relative.dart:79— packages/go_router/example/lib/go_relative.dart:79-102 | packages/go_router/example/lib/on_exit.dart:98-121 — before extracting anything, compare `packages/go_router/example/lib/go_relative.dart` and `packages/go_router/example/lib/on_exit.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/main.dart:181— packages/webview_flutter/webview_flutter_android/example/lib/main.dart:181-204 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:164-187 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:294— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:294-313 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:299-318 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:299-318 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:299-318 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:617— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:617-636 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:622-641 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:622-641 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:622-641 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 4) packages/camera/camera/example/lib/main.dart:814— packages/camera/camera/example/lib/main.dart:814-833 | packages/camera/camera_android/example/lib/main.dart:822-841 | packages/camera/camera_android_camerax/example/lib/main.dart:812-831 | packages/camera/camera_avfoundation/example/lib/main.dart:819-838 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 4) packages/camera/camera/example/lib/main.dart:966— packages/camera/camera/example/lib/main.dart:966-985 | packages/camera/camera_android/example/lib/main.dart:974-993 | packages/camera/camera_android_camerax/example/lib/main.dart:964-983 | packages/camera/camera_avfoundation/example/lib/main.dart:971-990 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 3) packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:73— packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:73-90 | packages/image_picker/image_picker_macos/lib/image_picker_macos.dart:71-88 | packages/image_picker/image_picker_windows/lib/image_picker_windows.dart:102-119 — before extracting anything, compare `packages/image_picker/image_picker_linux/lib/image_picker_linux.dart` and `packages/image_picker/image_picker_macos/lib/image_picker_macos.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 3) packages/material_ui/lib/src/button_style.dart:730— packages/material_ui/lib/src/button_style.dart:730-747 | packages/material_ui/lib/src/menu_style.dart:353-370 | packages/material_ui/lib/src/search_bar_theme.dart:226-243 — before extracting anything, compare `packages/material_ui/lib/src/button_style.dart` and `packages/material_ui/lib/src/menu_style.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift:36— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift:36-53 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/HeatmapController.swift:36-53 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/HeatmapController.swift:36-53 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/HeatmapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/HeatmapController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift:34— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift:34-51 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolygonController.swift:34-51 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/PolygonController.swift:34-51 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolygonController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolygonController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15–16 lines × 2) packages/material_ui/lib/src/tooltip.dart:381— packages/material_ui/lib/src/tooltip.dart:381-396 | packages/material_ui/lib/src/tooltip_theme.dart:295-309 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (15–16 lines × 2) packages/material_ui/example/lib/bottom_app_bar/bottom_app_bar.1.dart:140— packages/material_ui/example/lib/bottom_app_bar/bottom_app_bar.1.dart:140-154 | packages/material_ui/example/lib/bottom_app_bar/bottom_app_bar.2.dart:174-189 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (15–16 lines × 2) packages/material_ui/example/lib/input_decorator/input_decoration.floating_label_style_error.0.dart:40— packages/material_ui/example/lib/input_decorator/input_decoration.floating_label_style_error.0.dart:40-55 | packages/material_ui/example/lib/input_decorator/input_decoration.label_style_error.0.dart:39-53 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (15–16 lines × 2) packages/material_ui/example/lib/navigation_bar/navigation_bar.0.dart:102— packages/material_ui/example/lib/navigation_bar/navigation_bar.0.dart:102-117 | packages/material_ui/example/lib/navigation_bar/navigation_bar.0.dart:120-134 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14–15 lines × 2) packages/material_ui/lib/src/range_slider_parts.dart:528— packages/material_ui/lib/src/range_slider_parts.dart:528-541 | packages/material_ui/lib/src/slider_parts.dart:333-347 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14–15 lines × 2) packages/pigeon/lib/src/gobject/gobject_generator.dart:2088— packages/pigeon/lib/src/gobject/gobject_generator.dart:2088-2101 | packages/pigeon/lib/src/gobject/gobject_generator.dart:2114-2128 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14–15 lines × 2) packages/pigeon/lib/src/kotlin/kotlin_generator.dart:836— packages/pigeon/lib/src/kotlin/kotlin_generator.dart:836-849 | packages/pigeon/lib/src/kotlin/kotlin_generator.dart:940-954 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14–15 lines × 2) packages/go_router/example/lib/others/custom_stateful_shell_route.dart:216— packages/go_router/example/lib/others/custom_stateful_shell_route.dart:216-229 | packages/go_router_builder/example/lib/stateful_shell_route_example.dart:131-145 — before extracting anything, compare `packages/go_router/example/lib/others/custom_stateful_shell_route.dart` and `packages/go_router_builder/example/lib/stateful_shell_route_example.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:307— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:307-320 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:279-292 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:284-297 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:284-297 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:284-297 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:331— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:331-344 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:303-316 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:308-321 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:308-321 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:308-321 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:1062— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:1062-1075 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:967-980 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:940-953 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:940-953 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:940-953 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 5) packages/cross_file/cross_file/example/lib/main.dart:78— packages/cross_file/cross_file/example/lib/main.dart:78-91 | packages/cross_file/cross_file_android/example/lib/main.dart:78-91 | packages/cross_file/cross_file_darwin/example/lib/main.dart:78-91 | packages/cross_file/cross_file_io/example/lib/main.dart:78-91 | packages/cross_file/cross_file_web/example/lib/main.dart:51-64 — before extracting anything, compare `packages/cross_file/cross_file/example/lib/main.dart` and `packages/cross_file/cross_file_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:59— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:59-69 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:59-69 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:59-69 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:59-69 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:59-69 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:360— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:360-370 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:332-342 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:337-347 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:337-347 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:337-347 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 5) packages/cross_file/cross_file/example/lib/main.dart:34— packages/cross_file/cross_file/example/lib/main.dart:34-44 | packages/cross_file/cross_file_android/example/lib/main.dart:34-44 | packages/cross_file/cross_file_darwin/example/lib/main.dart:34-44 | packages/cross_file/cross_file_io/example/lib/main.dart:34-44 | packages/cross_file/cross_file_web/example/lib/main.dart:29-39 — before extracting anything, compare `packages/cross_file/cross_file/example/lib/main.dart` and `packages/cross_file/cross_file_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart:139— packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart:139-149 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:138-148 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart:138-148 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_markers_clustering.dart:138-148 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart:138-148 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 4) packages/material_ui/lib/src/button.dart:523— packages/material_ui/lib/src/button.dart:523-532 | packages/material_ui/lib/src/button_style_button.dart:717-726 | packages/material_ui/lib/src/time_picker.dart:913-922 | packages/material_ui/lib/src/toggle_buttons.dart:1689-1698 — before extracting anything, compare `packages/material_ui/lib/src/button.dart` and `packages/material_ui/lib/src/button_style_button.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 4) packages/vector_graphics_compiler/lib/src/svg/parser.dart:465— packages/vector_graphics_compiler/lib/src/svg/parser.dart:465-474 | packages/vector_graphics_compiler/lib/src/svg/parser.dart:496-505 | packages/vector_graphics_compiler/lib/src/svg/parser.dart:551-560 | packages/vector_graphics_compiler/lib/src/svg/parser.dart:575-584 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 4) packages/file_selector/file_selector/example/lib/get_directory_page.dart:62— packages/file_selector/file_selector/example/lib/get_directory_page.dart:62-71 | packages/file_selector/file_selector_linux/example/lib/get_directory_page.dart:62-71 | packages/file_selector/file_selector_macos/example/lib/get_directory_page.dart:62-71 | packages/file_selector/file_selector_windows/example/lib/get_directory_page.dart:62-71 — before extracting anything, compare `packages/file_selector/file_selector_linux/example/lib/get_directory_page.dart` and `packages/file_selector/file_selector_macos/example/lib/get_directory_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:75— packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:75-84 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:75-84 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:75-84 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:75-84 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 306 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 6) packages/material_ui/lib/src/elevated_button_theme.dart:79— packages/material_ui/lib/src/elevated_button_theme.dart:79-83 | packages/material_ui/lib/src/filled_button_theme.dart:75-79 | packages/material_ui/lib/src/menu_button_theme.dart:89-93 | packages/material_ui/lib/src/outlined_button_theme.dart:79-83 | packages/material_ui/lib/src/segmented_button_theme.dart:99-103 | packages/material_ui/lib/src/text_button_theme.dart:75-79 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 6 call sites, so a change lands once.
Duplicated block (5 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:112— packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:112-116 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart:113-117 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/tile_overlay.dart:113-117 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/tile_overlay.dart:113-117 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/tile_overlay.dart:113-117 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/tile_overlay.dart:113-117 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:123— packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:123-127 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart:124-128 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/tile_overlay.dart:124-128 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/tile_overlay.dart:124-128 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/tile_overlay.dart:124-128 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/tile_overlay.dart:124-128 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:231— packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:231-235 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:239-243 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:259-263 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:259-263 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:259-263 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:259-263 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (30 lines × 4) packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:88— packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:88-117 | packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:125-154 | packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:164-193 | packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:201-230 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:88` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `decisionHandler` to `@escaping @MainActor (WebKit.WKNavigationActionPolicy) -> Void` in one and `@escaping (WKNavigationActionPolicy) -> Void` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (30 lines × 4) packages/camera/camera/example/lib/main.dart:71— packages/camera/camera/example/lib/main.dart:71-100 | packages/camera/camera_android/example/lib/main.dart:75-104 | packages/camera/camera_android_camerax/example/lib/main.dart:74-103 | packages/camera/camera_avfoundation/example/lib/main.dart:75-104 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (30 lines × 4) packages/camera/camera/example/lib/main.dart:335— packages/camera/camera/example/lib/main.dart:335-364 | packages/camera/camera_android/example/lib/main.dart:339-368 | packages/camera/camera_android_camerax/example/lib/main.dart:341-370 | packages/camera/camera_avfoundation/example/lib/main.dart:339-368 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (30 lines × 4) packages/camera/camera/example/lib/main.dart:935— packages/camera/camera/example/lib/main.dart:935-964 | packages/camera/camera_android/example/lib/main.dart:943-972 | packages/camera/camera_android_camerax/example/lib/main.dart:933-962 | packages/camera/camera_avfoundation/example/lib/main.dart:940-969 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11–12 lines × 3) packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart:16— packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart:16-27 | packages/file_selector/file_selector_android/example/lib/open_multiple_images_page.dart:15-25 | packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart:17-27 — before extracting anything, compare `packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart` and `packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11–12 lines × 3) packages/go_router/example/lib/books/src/screens/settings.dart:70— packages/go_router/example/lib/books/src/screens/settings.dart:70-80 | packages/material_ui/example/lib/dialog/alert_dialog.0.dart:32-43 | packages/material_ui/example/lib/dialog/alert_dialog.1.dart:33-44 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (11–12 lines × 3) packages/local_auth/local_auth/example/lib/main.dart:127— packages/local_auth/local_auth/example/lib/main.dart:127-138 | packages/local_auth/local_auth_android/example/lib/main.dart:127-137 | packages/local_auth/local_auth_darwin/example/lib/main.dart:127-137 — before extracting anything, compare `packages/local_auth/local_auth/example/lib/main.dart` and `packages/local_auth/local_auth_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11–12 lines × 3) packages/webview_flutter/webview_flutter/example/lib/main.dart:585— packages/webview_flutter/webview_flutter/example/lib/main.dart:585-596 | packages/webview_flutter/webview_flutter_android/example/lib/main.dart:784-795 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:728-738 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
GoogleMapController.updateMapView (cyclomatic 18) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:454— GoogleMapController.updateMapView has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
GoogleMapController.updateMapView (cyclomatic 18) packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:454— GoogleMapController.updateMapView has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
GoogleMapController.updateMapView (cyclomatic 18) packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:454— GoogleMapController.updateMapView has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
GoogleMapController.updateMapView (cognitive 20) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:454— GoogleMapController.updateMapView has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18 (20 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
GoogleMapController.updateMapView (cognitive 20) packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:454— GoogleMapController.updateMapView has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18 (20 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
GoogleMapController.updateMapView (cognitive 20) packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:454— GoogleMapController.updateMapView has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18 (20 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Duplicated block (27 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:84— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:84-110 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:102-128 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:102-128 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:102-128 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:102-128 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (27 lines × 5) packages/image_picker/image_picker_android/example/lib/main.dart:91— packages/image_picker/image_picker_android/example/lib/main.dart:91-117 | packages/image_picker/image_picker_ios/example/lib/main.dart:73-99 | packages/image_picker/image_picker_linux/example/lib/main.dart:73-99 | packages/image_picker/image_picker_macos/example/lib/main.dart:73-99 | packages/image_picker/image_picker_windows/example/lib/main.dart:73-99 — before extracting anything, compare `packages/image_picker/image_picker_android/example/lib/main.dart` and `packages/image_picker/image_picker_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (27 lines × 5) packages/image_picker/image_picker_android/example/lib/main.dart:158— packages/image_picker/image_picker_android/example/lib/main.dart:158-184 | packages/image_picker/image_picker_ios/example/lib/main.dart:140-166 | packages/image_picker/image_picker_linux/example/lib/main.dart:134-160 | packages/image_picker/image_picker_macos/example/lib/main.dart:134-160 | packages/image_picker/image_picker_windows/example/lib/main.dart:134-160 — before extracting anything, compare `packages/image_picker/image_picker_android/example/lib/main.dart` and `packages/image_picker/image_picker_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (27 lines × 2) packages/cupertino_ui/lib/src/date_picker.dart:1590— packages/cupertino_ui/lib/src/date_picker.dart:1590-1616 | packages/cupertino_ui/lib/src/date_picker.dart:1957-1983 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (27 lines × 2) packages/google_sign_in/google_sign_in_android/example/lib/main.dart:75— packages/google_sign_in/google_sign_in_android/example/lib/main.dart:75-101 | packages/google_sign_in/google_sign_in_ios/example/lib/main.dart:73-99 — before extracting anything, compare `packages/google_sign_in/google_sign_in_android/example/lib/main.dart` and `packages/google_sign_in/google_sign_in_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (27 lines × 2) packages/material_ui/example/lib/scaffold/scaffold.of.0.dart:34— packages/material_ui/example/lib/scaffold/scaffold.of.0.dart:34-60 | packages/material_ui/example/lib/scaffold/scaffold.of.1.dart:32-58 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (25 lines × 3) packages/material_ui/lib/src/slider_parts.dart:805— packages/material_ui/lib/src/slider_parts.dart:805-829 | packages/material_ui/lib/src/slider_parts.dart:1287-1311 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:263-287 — before extracting anything, compare `packages/material_ui/lib/src/slider_parts.dart` and `packages/material_ui/lib/src/slider_value_indicator_shape.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (25 lines × 3) packages/material_ui/lib/src/toggle_buttons.dart:609— packages/material_ui/lib/src/toggle_buttons.dart:609-633 | packages/material_ui/lib/src/toggle_buttons.dart:643-667 | packages/material_ui/lib/src/toggle_buttons.dart:685-709 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (25 lines × 3) packages/url_launcher/url_launcher_linux/example/lib/main.dart:63— packages/url_launcher/url_launcher_linux/example/lib/main.dart:63-87 | packages/url_launcher/url_launcher_macos/example/lib/main.dart:63-87 | packages/url_launcher/url_launcher_windows/example/lib/main.dart:63-87 — before extracting anything, compare `packages/url_launcher/url_launcher_linux/example/lib/main.dart` and `packages/url_launcher/url_launcher_macos/example/lib/main.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (25 lines × 2) packages/cupertino_ui/lib/src/segmented_control.dart:799— packages/cupertino_ui/lib/src/segmented_control.dart:799-823 | packages/material_ui/lib/src/segmented_button.dart:1052-1076 — before extracting anything, compare `packages/cupertino_ui/lib/src/segmented_control.dart` and `packages/material_ui/lib/src/segmented_button.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (25 lines × 2) packages/material_ui/lib/src/carousel.dart:1612— packages/material_ui/lib/src/carousel.dart:1612-1636 | packages/material_ui/lib/src/carousel.dart:1893-1917 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (25 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/main.dart:728— packages/webview_flutter/webview_flutter_android/example/lib/main.dart:728-752 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:676-700 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (21–22 lines × 2) packages/material_ui/lib/src/menu_style.dart:349— packages/material_ui/lib/src/menu_style.dart:349-369 | packages/material_ui/lib/src/search_bar_theme.dart:221-242 — before extracting anything, compare `packages/material_ui/lib/src/menu_style.dart` and `packages/material_ui/lib/src/search_bar_theme.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (21–22 lines × 2) packages/material_ui/lib/src/predictive_back_page_transitions_builder.dart:78— packages/material_ui/lib/src/predictive_back_page_transitions_builder.dart:78-99 | packages/material_ui/lib/src/predictive_back_page_transitions_builder.dart:159-179 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (21–22 lines × 2) packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/InAppPurchasePlugin+StoreKit2.swift:149— packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/InAppPurchasePlugin+StoreKit2.swift:149-169 | packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/InAppPurchasePlugin+StoreKit2.swift:209-230 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/InAppPurchasePlugin+StoreKit2.swift:149` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (20 lines × 5) packages/material_ui/lib/src/range_slider_parts.dart:1419— packages/material_ui/lib/src/range_slider_parts.dart:1419-1438 | packages/material_ui/lib/src/range_slider_parts.dart:1543-1562 | packages/material_ui/lib/src/slider_parts.dart:866-885 | packages/material_ui/lib/src/slider_parts.dart:1345-1364 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:404-423 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:297— packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:297-316 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:283-302 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:283-302 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:283-302 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:283-302 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 217 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart:73— packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart:73-92 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/tile_overlay.dart:73-92 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/tile_overlay.dart:73-92 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/tile_overlay.dart:73-92 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/tile_overlay.dart:73-92 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/tile_overlay.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18–19 lines × 2) packages/material_ui/lib/src/app_bar.dart:1028— packages/material_ui/lib/src/app_bar.dart:1028-1046 | packages/material_ui/lib/src/app_bar.dart:1123-1140 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18–19 lines × 2) packages/material_ui/lib/src/list_tile.dart:1074— packages/material_ui/lib/src/list_tile.dart:1074-1092 | packages/material_ui/lib/src/list_tile_theme.dart:298-315 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (18–19 lines × 2) packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:238— packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:238-256 | packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:262-279 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/NavigationDelegateProxyAPIDelegate.swift:238` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:208— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:208-224 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:208-224 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:208-224 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:208-224 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:678— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:678-694 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:683-699 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:683-699 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:683-699 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 4) packages/file_selector/file_selector/example/lib/get_multiple_directories_page.dart:39— packages/file_selector/file_selector/example/lib/get_multiple_directories_page.dart:39-55 | packages/file_selector/file_selector_linux/example/lib/get_multiple_directories_page.dart:36-52 | packages/file_selector/file_selector_macos/example/lib/get_multiple_directories_page.dart:36-52 | packages/file_selector/file_selector_windows/example/lib/get_multiple_directories_page.dart:36-52 — before extracting anything, compare `packages/file_selector/file_selector/example/lib/get_multiple_directories_page.dart` and `packages/file_selector/file_selector_linux/example/lib/get_multiple_directories_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 6) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:590— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:590-605 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:484-499 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:489-504 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:489-504 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:489-504 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:556-571 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:88— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:88-103 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:88-103 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:86-101 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:86-101 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:86-101 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:86-101 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 6) packages/image_picker/image_picker/example/lib/main.dart:482— packages/image_picker/image_picker/example/lib/main.dart:482-497 | packages/image_picker/image_picker_android/example/lib/main.dart:512-527 | packages/image_picker/image_picker_ios/example/lib/main.dart:430-445 | packages/image_picker/image_picker_linux/example/lib/main.dart:430-445 | packages/image_picker/image_picker_macos/example/lib/main.dart:430-445 | packages/image_picker/image_picker_windows/example/lib/main.dart:430-445 — before extracting anything, compare `packages/image_picker/image_picker/example/lib/main.dart` and `packages/image_picker/image_picker_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14–15 lines × 5) packages/material_ui/lib/src/range_slider_parts.dart:624— packages/material_ui/lib/src/range_slider_parts.dart:624-638 | packages/material_ui/lib/src/range_slider_parts.dart:1040-1053 | packages/material_ui/lib/src/slider_parts.dart:317-331 | packages/material_ui/lib/src/slider_parts.dart:451-465 | packages/material_ui/lib/src/slider_parts.dart:1088-1102 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14–15 lines × 5) packages/file_selector/file_selector/example/lib/open_image_page.dart:25— packages/file_selector/file_selector/example/lib/open_image_page.dart:25-38 | packages/file_selector/file_selector_ios/example/lib/open_image_page.dart:25-39 | packages/file_selector/file_selector_linux/example/lib/open_image_page.dart:21-35 | packages/file_selector/file_selector_macos/example/lib/open_image_page.dart:21-35 | packages/file_selector/file_selector_windows/example/lib/open_image_page.dart:21-35 — before extracting anything, compare `packages/file_selector/file_selector/example/lib/open_image_page.dart` and `packages/file_selector/file_selector_ios/example/lib/open_image_page.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14–15 lines × 5) packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:289— packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:289-303 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:309-323 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:329-342 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:345-359 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:365-378 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14–15 lines × 3) packages/pigeon/lib/src/java/java_generator.dart:788— packages/pigeon/lib/src/java/java_generator.dart:788-801 | packages/pigeon/lib/src/kotlin/kotlin_generator.dart:743-757 | packages/pigeon/lib/src/swift/swift_generator.dart:748-761 — `packages/pigeon/lib/src/java/java_generator.dart` and `packages/pigeon/lib/src/kotlin/kotlin_generator.dart` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (14–15 lines × 3) packages/in_app_purchase/in_app_purchase/example/lib/main.dart:224— packages/in_app_purchase/in_app_purchase/example/lib/main.dart:224-237 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:416-429 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:221-235 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase/example/lib/main.dart` and `packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14–15 lines × 3) packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:586— packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:586-600 | packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart:301-315 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart:537-550 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart` and `packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13–14 lines × 2) packages/cupertino_ui/lib/src/nav_bar.dart:3177— packages/cupertino_ui/lib/src/nav_bar.dart:3177-3190 | packages/cupertino_ui/lib/src/nav_bar.dart:3492-3504 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13–14 lines × 2) packages/pigeon/lib/src/dart/dart_generator.dart:1346— packages/pigeon/lib/src/dart/dart_generator.dart:1346-1359 | packages/pigeon/lib/src/dart/dart_generator.dart:1387-1399 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13–14 lines × 2) packages/pigeon/lib/src/kotlin/kotlin_generator.dart:1861— packages/pigeon/lib/src/kotlin/kotlin_generator.dart:1861-1873 | packages/pigeon/lib/src/kotlin/kotlin_generator.dart:1901-1914 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:567— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:567-579 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:572-584 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:572-584 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:572-584 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 4) packages/image_picker/image_picker_android/lib/image_picker_android.dart:36— packages/image_picker/image_picker_android/lib/image_picker_android.dart:36-48 | packages/image_picker/image_picker_android/lib/image_picker_android.dart:156-168 | packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:22-34 | packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart:181-193 — before extracting anything, compare `packages/image_picker/image_picker_android/lib/image_picker_android.dart` and `packages/image_picker/image_picker_platform_interface/lib/src/method_channel/method_channel_image_picker.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 4) packages/material_ui/lib/src/elevated_button.dart:499— packages/material_ui/lib/src/elevated_button.dart:499-511 | packages/material_ui/lib/src/filled_button.dart:526-538 | packages/material_ui/lib/src/outlined_button.dart:446-458 | packages/material_ui/lib/src/text_button.dart:485-497 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
Duplicated block (12–13 lines × 2) packages/material_ui/lib/src/segmented_button.dart:1243— packages/material_ui/lib/src/segmented_button.dart:1243-1254 | packages/material_ui/lib/src/time_picker.dart:3938-3950 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (12–13 lines × 2) packages/pigeon/lib/src/gobject/gobject_generator.dart:275— packages/pigeon/lib/src/gobject/gobject_generator.dart:275-287 | packages/pigeon/lib/src/gobject/gobject_generator.dart:423-434 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12–13 lines × 2) packages/webview_flutter/webview_flutter_android/example/lib/main.dart:241— packages/webview_flutter/webview_flutter_android/example/lib/main.dart:241-253 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:235-246 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:582— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:582-592 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:587-597 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:587-597 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:587-597 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:950— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:950-960 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:923-933 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:923-933 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:923-933 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 4) packages/in_app_purchase/in_app_purchase/example/lib/main.dart:349— packages/in_app_purchase/in_app_purchase/example/lib/main.dart:349-359 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:401-411 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:424-434 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:447-457 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase/example/lib/main.dart` and `packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 208 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:783— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:783-787 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:660-664 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:665-669 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:665-669 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:665-669 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:53— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:53-57 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:53-57 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:53-57 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:53-57 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:53-57 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:436— packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:436-440 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:433-437 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:433-437 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:433-437 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:433-437 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 4) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:588— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:588-592 | packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:621-625 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:554-558 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:587-591 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 4) packages/vector_graphics_codec/lib/vector_graphics_codec.dart:438— packages/vector_graphics_codec/lib/vector_graphics_codec.dart:438-442 | packages/vector_graphics_codec/lib/vector_graphics_codec.dart:866-870 | packages/vector_graphics_codec/lib/vector_graphics_codec.dart:947-951 | packages/vector_graphics_codec/lib/vector_graphics_codec.dart:958-962 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 4) packages/webview_flutter/webview_flutter/lib/src/legacy/webview.dart:641— packages/webview_flutter/webview_flutter/lib/src/legacy/webview.dart:641-645 | packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:484-488 | packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart:213-217 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart:430-434 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart` and `packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:226— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:226-231 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:226-231 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:226-231 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:226-231 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 4) packages/google_maps_flutter/google_maps_flutter_web/lib/src/circles.dart:67— packages/google_maps_flutter/google_maps_flutter_web/lib/src/circles.dart:67-72 | packages/google_maps_flutter/google_maps_flutter_web/lib/src/markers.dart:262-267 | packages/google_maps_flutter/google_maps_flutter_web/lib/src/polygons.dart:67-72 | packages/google_maps_flutter/google_maps_flutter_web/lib/src/polylines.dart:68-73 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
Duplicated block (6 lines × 4) packages/material_ui/example/lib/chip/chip_attributes.avatar_box_constraints.0.dart:15— packages/material_ui/example/lib/chip/chip_attributes.avatar_box_constraints.0.dart:15-20 | packages/material_ui/example/lib/chip/chip_attributes.chip_animation_style.0.dart:15-20 | packages/material_ui/example/lib/chip/deletable_chip_attributes.delete_icon_box_constraints.0.dart:15-20 | packages/material_ui/example/lib/segmented_button/segmented_button.1.dart:17-22 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times.
Duplicated block (21 lines × 2) packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java:240— packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java:240-260 | packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java:343-363 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java:240` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (21 lines × 2) packages/interactive_media_ads/example/lib/readme_example.dart:132— packages/interactive_media_ads/example/lib/readme_example.dart:132-152 | packages/interactive_media_ads/example/lib/video_ad_example_screen.dart:137-157 — before extracting anything, compare `packages/interactive_media_ads/example/lib/readme_example.dart` and `packages/interactive_media_ads/example/lib/video_ad_example_screen.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (21 lines × 2) packages/pointer_interceptor/pointer_interceptor/example/lib/main.dart:137— packages/pointer_interceptor/pointer_interceptor/example/lib/main.dart:137-157 | packages/pointer_interceptor/pointer_interceptor_web/example/lib/main.dart:180-200 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (29 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:142— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:142-170 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:142-170 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:142-170 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (29 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:78— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:78-106 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift:78-106 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/TileOverlayController.swift:78-106 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (29 lines × 3) packages/in_app_purchase/in_app_purchase/example/lib/main.dart:184— packages/in_app_purchase/in_app_purchase/example/lib/main.dart:184-212 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:199-227 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:177-205 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase/example/lib/main.dart` and `packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (21 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:120— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:120-140 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:120-140 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:120-140 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (21 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:178— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:178-198 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:178-198 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:178-198 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (21 lines × 3) packages/cross_file/cross_file_android/example/lib/main.dart:56— packages/cross_file/cross_file_android/example/lib/main.dart:56-76 | packages/cross_file/cross_file_darwin/example/lib/main.dart:56-76 | packages/cross_file/cross_file_io/example/lib/main.dart:56-76 — before extracting anything, compare `packages/cross_file/cross_file_android/example/lib/main.dart` and `packages/cross_file/cross_file_darwin/example/lib/main.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:674— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:674-692 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:674-692 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:674-692 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapFactory.swift:11— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapFactory.swift:11-29 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapFactory.swift:11-29 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapFactory.swift:11-29 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapFactory.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapFactory.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 3) packages/local_auth/local_auth/example/lib/main.dart:141— packages/local_auth/local_auth/example/lib/main.dart:141-159 | packages/local_auth/local_auth_android/example/lib/main.dart:140-158 | packages/local_auth/local_auth_darwin/example/lib/main.dart:140-158 — before extracting anything, compare `packages/local_auth/local_auth/example/lib/main.dart` and `packages/local_auth/local_auth_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (25 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:241— packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart:241-265 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:243-267 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:226-250 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:226-250 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:226-250 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:226-250 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/ground_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (25 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_map_id.dart:78— packages/google_maps_flutter/google_maps_flutter/example/lib/map_map_id.dart:78-102 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_map_id.dart:77-101 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_map_id.dart:50-74 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_map_id.dart:50-74 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_map_id.dart:50-74 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_map_id.dart:50-74 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times.
Duplicated block (25 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart:37— packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart:37-61 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/padding.dart:39-63 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/padding.dart:39-63 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/padding.dart:39-63 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/padding.dart:39-63 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/padding.dart:39-63 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/padding.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16–17 lines × 2) packages/interactive_media_ads/example/lib/readme_example.dart:233— packages/interactive_media_ads/example/lib/readme_example.dart:233-249 | packages/interactive_media_ads/example/lib/video_ad_example_screen.dart:243-258 — before extracting anything, compare `packages/interactive_media_ads/example/lib/readme_example.dart` and `packages/interactive_media_ads/example/lib/video_ad_example_screen.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (16–17 lines × 2) packages/material_ui/example/lib/app_bar/sliver_app_bar.1.dart:55— packages/material_ui/example/lib/app_bar/sliver_app_bar.1.dart:55-71 | packages/material_ui/example/lib/app_bar/sliver_app_bar.4.dart:46-61 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (16–17 lines × 2) packages/video_player/video_player/example/lib/audio_tracks_demo.dart:190— packages/video_player/video_player/example/lib/audio_tracks_demo.dart:190-206 | packages/video_player/video_player/example/lib/video_tracks_demo.dart:236-251 — before extracting anything, compare `packages/video_player/video_player/example/lib/audio_tracks_demo.dart` and `packages/video_player/video_player/example/lib/video_tracks_demo.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Near-duplicate member pair (46 shared lines) packages/cupertino_ui/lib/src/app.dart:610— packages/cupertino_ui/lib/src/app.dart:610-682 | packages/material_ui/lib/src/app.dart:1013-1087 — These two members are variants of one another: 46 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (46 shared lines) packages/cupertino_ui/lib/src/date_picker.dart:1678— packages/cupertino_ui/lib/src/date_picker.dart:1678-1785 | packages/cupertino_ui/lib/src/date_picker.dart:2034-2128 — These two members are variants of one another: 46 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication· Members sharing a duplicated core (10 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (10 members, 50+ identical tokens) packages/camera/camera_web/lib/src/camera_web.dart:256— packages/camera/camera_web/lib/src/camera_web.dart:256-326 | packages/camera/camera_web/lib/src/camera_web.dart:424-434 | packages/camera/camera_web/lib/src/camera_web.dart:447-476 | packages/camera/camera_web/lib/src/camera_web.dart:478-490 | packages/camera/camera_web/lib/src/camera_web.dart:492-502 | packages/camera/camera_web/lib/src/camera_web.dart:504-514 | packages/camera/camera_web/lib/src/camera_web.dart:516-526 | packages/camera/camera_web/lib/src/camera_web.dart:568-578 | packages/camera/camera_web/lib/src/camera_web.dart:580-590 | packages/camera/camera_web/lib/src/camera_web.dart:615-625 — These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times.
Members sharing a duplicated core (10 members, 50+ identical tokens) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:385— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:385-418 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:417-438 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:274-400 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:435-456 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:274-400 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:435-456 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:274-400 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:435-456 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:274-400 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:435-456 — These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times.
Duplicated block (43–44 lines × 2) packages/cupertino_ui/lib/src/text_field.dart:1088— packages/cupertino_ui/lib/src/text_field.dart:1088-1130 | packages/material_ui/lib/src/text_field.dart:1134-1177 — before extracting anything, compare `packages/cupertino_ui/lib/src/text_field.dart` and `packages/material_ui/lib/src/text_field.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (43–44 lines × 2) packages/video_player/video_player_android/example/lib/mini_controller.dart:519— packages/video_player/video_player_android/example/lib/mini_controller.dart:519-562 | packages/video_player/video_player_avfoundation/example/lib/mini_controller.dart:488-530 — before extracting anything, compare `packages/video_player/video_player_android/example/lib/mini_controller.dart` and `packages/video_player/video_player_avfoundation/example/lib/mini_controller.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (42 lines × 2) packages/material_ui/lib/src/button_style.dart:733— packages/material_ui/lib/src/button_style.dart:733-774 | packages/material_ui/lib/src/menu_style.dart:356-397 — before extracting anything, compare `packages/material_ui/lib/src/button_style.dart` and `packages/material_ui/lib/src/menu_style.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (42 lines × 2) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:2081— packages/two_dimensional_scrollables/lib/src/table_view/table.dart:2081-2122 | packages/two_dimensional_scrollables/lib/src/table_view/table.dart:2148-2189 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (39 lines × 2) packages/material_ui/lib/src/range_slider_parts.dart:1463— packages/material_ui/lib/src/range_slider_parts.dart:1463-1501 | packages/material_ui/lib/src/slider_parts.dart:1389-1427 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (39 lines × 2) packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.0.dart:74— packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.0.dart:74-112 | packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.2.dart:81-119 — before extracting anything, compare `packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.0.dart` and `packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.2.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (26 lines × 2) packages/material_ui/lib/src/about.dart:458— packages/material_ui/lib/src/about.dart:458-483 | packages/material_ui/lib/src/about.dart:540-565 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (26 lines × 2) packages/material_ui/example/lib/bottom_sheet/show_bottom_sheet.0.dart:85— packages/material_ui/example/lib/bottom_sheet/show_bottom_sheet.0.dart:85-110 | packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.2.dart:86-111 — before extracting anything, compare `packages/material_ui/example/lib/bottom_sheet/show_bottom_sheet.0.dart` and `packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.2.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 4) packages/material_ui/lib/src/range_slider_parts.dart:1404— packages/material_ui/lib/src/range_slider_parts.dart:1404-1427 | packages/material_ui/lib/src/range_slider_parts.dart:1528-1551 | packages/material_ui/lib/src/slider_parts.dart:851-874 | packages/material_ui/lib/src/slider_parts.dart:1330-1353 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 4) packages/cross_file/cross_file/example/lib/main.dart:83— packages/cross_file/cross_file/example/lib/main.dart:83-106 | packages/cross_file/cross_file_android/example/lib/main.dart:83-106 | packages/cross_file/cross_file_darwin/example/lib/main.dart:83-106 | packages/cross_file/cross_file_io/example/lib/main.dart:83-106 — before extracting anything, compare `packages/cross_file/cross_file/example/lib/main.dart` and `packages/cross_file/cross_file_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:119— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:119-136 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:136-153 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:136-153 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:136-153 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:136-153 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 5) packages/image_picker/image_picker_android/example/lib/main.dart:473— packages/image_picker/image_picker_android/example/lib/main.dart:473-490 | packages/image_picker/image_picker_ios/example/lib/main.dart:391-408 | packages/image_picker/image_picker_linux/example/lib/main.dart:395-412 | packages/image_picker/image_picker_macos/example/lib/main.dart:395-412 | packages/image_picker/image_picker_windows/example/lib/main.dart:395-412 — before extracting anything, compare `packages/image_picker/image_picker_android/example/lib/main.dart` and `packages/image_picker/image_picker_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17–18 lines × 2) packages/material_ui/lib/src/button_style.dart:781— packages/material_ui/lib/src/button_style.dart:781-797 | packages/material_ui/lib/src/menu_style.dart:396-413 — before extracting anything, compare `packages/material_ui/lib/src/button_style.dart` and `packages/material_ui/lib/src/menu_style.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17–18 lines × 2) packages/pigeon/lib/src/cpp/cpp_generator.dart:555— packages/pigeon/lib/src/cpp/cpp_generator.dart:555-571 | packages/pigeon/lib/src/cpp/cpp_generator.dart:626-643 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:561— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:561-576 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:456-471 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:461-476 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:461-476 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:461-476 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 5) packages/material_ui/lib/src/range_slider_parts.dart:1445— packages/material_ui/lib/src/range_slider_parts.dart:1445-1460 | packages/material_ui/lib/src/range_slider_parts.dart:1578-1593 | packages/material_ui/lib/src/slider_parts.dart:901-916 | packages/material_ui/lib/src/slider_parts.dart:1371-1386 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:431-446 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 4) packages/cupertino_ui/lib/src/app.dart:631— packages/cupertino_ui/lib/src/app.dart:631-646 | packages/cupertino_ui/lib/src/app.dart:667-682 | packages/material_ui/lib/src/app.dart:1036-1051 | packages/material_ui/lib/src/app.dart:1072-1087 — before extracting anything, compare `packages/cupertino_ui/lib/src/app.dart` and `packages/material_ui/lib/src/app.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:660— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:660-675 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:665-680 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:665-680 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:665-680 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13–14 lines × 3) packages/material_ui/lib/src/range_slider_parts.dart:1626— packages/material_ui/lib/src/range_slider_parts.dart:1626-1639 | packages/material_ui/lib/src/slider_parts.dart:949-962 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:479-491 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13–14 lines × 3) packages/webview_flutter/webview_flutter/example/lib/main.dart:514— packages/webview_flutter/webview_flutter/example/lib/main.dart:514-527 | packages/webview_flutter/webview_flutter_android/example/lib/main.dart:646-658 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:593-605 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9–10 lines × 2) packages/cupertino_ui/lib/src/desktop_text_selection.dart:168— packages/cupertino_ui/lib/src/desktop_text_selection.dart:168-177 | packages/material_ui/lib/src/desktop_text_selection.dart:185-193 — before extracting anything, compare `packages/cupertino_ui/lib/src/desktop_text_selection.dart` and `packages/material_ui/lib/src/desktop_text_selection.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9–10 lines × 2) packages/go_router/example/lib/named_routes.dart:108— packages/go_router/example/lib/named_routes.dart:108-117 | packages/go_router/example/lib/path_and_query_parameters.dart:96-104 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8–9 lines × 2) packages/cupertino_ui/lib/src/checkbox.dart:592— packages/cupertino_ui/lib/src/checkbox.dart:592-599 | packages/material_ui/lib/src/checkbox.dart:745-753 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8–9 lines × 2) packages/material_ui/example/lib/autocomplete/autocomplete.0.dart:48— packages/material_ui/example/lib/autocomplete/autocomplete.0.dart:48-55 | packages/material_ui/test_apps/a11y_assessments/lib/use_cases/auto_complete.dart:64-72 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (31 lines × 2) packages/in_app_purchase/in_app_purchase/lib/in_app_purchase.dart:84— packages/in_app_purchase/in_app_purchase/lib/in_app_purchase.dart:84-114 | packages/in_app_purchase/in_app_purchase_platform_interface/lib/src/in_app_purchase_platform.dart:75-105 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (31 lines × 2) packages/in_app_purchase/in_app_purchase_android/android/src/main/kotlin/io/flutter/plugins/inapppurchase/ResultUtils.kt:7— packages/in_app_purchase/in_app_purchase_android/android/src/main/kotlin/io/flutter/plugins/inapppurchase/ResultUtils.kt:7-37 | packages/quick_actions/quick_actions_android/android/src/main/kotlin/io/flutter/plugins/quickactions/ResultUtils.kt:7-41 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase_android/android/src/main/kotlin/io/flutter/plugins/inapppurchase/ResultUtils.kt` and `packages/quick_actions/quick_actions_android/android/src/main/kotlin/io/flutter/plugins/quickactions/ResultUtils.kt` as WHOLE FILES: 87% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `packages/in_app_purchase/in_app_purchase_android/android/src/main/kotlin/io/flutter/plugins/inapppurchase/ResultUtils.kt:7` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15–16 lines × 3) packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:760— packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:760-774 | packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:777-792 | packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:830-845 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15–16 lines × 3) packages/cupertino_ui/example/lib/date_picker/cupertino_date_picker.0.dart:38— packages/cupertino_ui/example/lib/date_picker/cupertino_date_picker.0.dart:38-53 | packages/cupertino_ui/example/lib/date_picker/cupertino_timer_picker.0.dart:36-51 | packages/cupertino_ui/example/lib/picker/cupertino_picker.0.dart:45-59 — before extracting anything, compare `packages/cupertino_ui/example/lib/date_picker/cupertino_date_picker.0.dart` and `packages/cupertino_ui/example/lib/date_picker/cupertino_timer_picker.0.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (44 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:53— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:53-96 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift:53-96 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GroundOverlayController.swift:53-96 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (44 lines × 3) packages/local_auth/local_auth/example/lib/main.dart:190— packages/local_auth/local_auth/example/lib/main.dart:190-233 | packages/local_auth/local_auth_android/example/lib/main.dart:189-232 | packages/local_auth/local_auth_darwin/example/lib/main.dart:189-232 — before extracting anything, compare `packages/local_auth/local_auth/example/lib/main.dart` and `packages/local_auth/local_auth_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (30 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:89— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:89-118 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:89-118 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:89-118 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (30 lines × 3) packages/video_player/video_player/example/lib/main.dart:439— packages/video_player/video_player/example/lib/main.dart:439-468 | packages/video_player/video_player_android/example/lib/main.dart:341-370 | packages/video_player/video_player_avfoundation/example/lib/main.dart:313-342 — before extracting anything, compare `packages/video_player/video_player/example/lib/main.dart` and `packages/video_player/video_player_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:44— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:44-67 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:44-67 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:44-67 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 3) packages/video_player/video_player/example/lib/main.dart:117— packages/video_player/video_player/example/lib/main.dart:117-140 | packages/video_player/video_player_android/example/lib/main.dart:70-93 | packages/video_player/video_player_avfoundation/example/lib/main.dart:72-95 — before extracting anything, compare `packages/video_player/video_player/example/lib/main.dart` and `packages/video_player/video_player_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift:34— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift:34-56 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolylineController.swift:34-56 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/PolylineController.swift:34-56 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/PolylineController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/PolylineController.swift` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 3) packages/in_app_purchase/in_app_purchase/example/lib/main.dart:160— packages/in_app_purchase/in_app_purchase/example/lib/main.dart:160-182 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:175-197 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:153-175 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase/example/lib/main.dart` and `packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:236— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:236-255 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ImageUtils.swift:236-255 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/ImageUtils.swift:236-255 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ImageUtils.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 3) packages/go_router/example/lib/shell_route.dart:172— packages/go_router/example/lib/shell_route.dart:172-191 | packages/go_router/example/lib/shell_route.dart:199-218 | packages/go_router/example/lib/shell_route.dart:226-245 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (40 lines × 4) packages/camera/camera/example/lib/main.dart:294— packages/camera/camera/example/lib/main.dart:294-333 | packages/camera/camera_android/example/lib/main.dart:298-337 | packages/camera/camera_android_camerax/example/lib/main.dart:300-339 | packages/camera/camera_avfoundation/example/lib/main.dart:298-337 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (40 lines × 4) packages/image_picker/image_picker_android/example/lib/main.dart:253— packages/image_picker/image_picker_android/example/lib/main.dart:253-292 | packages/image_picker/image_picker_linux/example/lib/main.dart:228-267 | packages/image_picker/image_picker_macos/example/lib/main.dart:228-267 | packages/image_picker/image_picker_windows/example/lib/main.dart:228-267 — before extracting anything, compare `packages/image_picker/image_picker_android/example/lib/main.dart` and `packages/image_picker/image_picker_linux/example/lib/main.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (34 lines × 3) packages/material_ui/example/lib/dialog/show_dialog.0.dart:39— packages/material_ui/example/lib/dialog/show_dialog.0.dart:39-72 | packages/material_ui/example/lib/dialog/show_dialog.1.dart:42-75 | packages/material_ui/example/lib/dialog/show_dialog.2.dart:45-78 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (34 lines × 3) packages/in_app_purchase/in_app_purchase/example/lib/consumable_store.dart:17— packages/in_app_purchase/in_app_purchase/example/lib/consumable_store.dart:17-50 | packages/in_app_purchase/in_app_purchase_android/example/lib/consumable_store.dart:17-50 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/consumable_store.dart:17-50 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (34 lines × 2) packages/go_router_builder/example/lib/shell_route_with_keys_example.dart:66— packages/go_router_builder/example/lib/shell_route_with_keys_example.dart:66-99 | packages/go_router_builder/example/lib/shell_route_with_observers_example.dart:69-102 — before extracting anything, compare `packages/go_router_builder/example/lib/shell_route_with_keys_example.dart` and `packages/go_router_builder/example/lib/shell_route_with_observers_example.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (34 lines × 2) packages/webview_flutter/webview_flutter/example/lib/main.dart:587— packages/webview_flutter/webview_flutter/example/lib/main.dart:587-620 | packages/webview_flutter/webview_flutter_android/example/lib/main.dart:786-819 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (33 lines × 4) packages/camera/camera/example/lib/main.dart:133— packages/camera/camera/example/lib/main.dart:133-165 | packages/camera/camera_android/example/lib/main.dart:130-162 | packages/camera/camera_android_camerax/example/lib/main.dart:132-164 | packages/camera/camera_avfoundation/example/lib/main.dart:130-162 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (33 lines × 4) packages/shared_preferences/shared_preferences_android/example/lib/main.dart:72— packages/shared_preferences/shared_preferences_android/example/lib/main.dart:72-104 | packages/shared_preferences/shared_preferences_foundation/example/lib/main.dart:62-94 | packages/shared_preferences/shared_preferences_linux/example/lib/main.dart:62-94 | packages/shared_preferences/shared_preferences_windows/example/lib/main.dart:62-94 — before extracting anything, compare `packages/shared_preferences/shared_preferences_foundation/example/lib/main.dart` and `packages/shared_preferences/shared_preferences_linux/example/lib/main.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (33 lines × 2) packages/google_sign_in/google_sign_in_android/example/lib/main.dart:127— packages/google_sign_in/google_sign_in_android/example/lib/main.dart:127-159 | packages/google_sign_in/google_sign_in_ios/example/lib/main.dart:125-157 — before extracting anything, compare `packages/google_sign_in/google_sign_in_android/example/lib/main.dart` and `packages/google_sign_in/google_sign_in_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (33 lines × 2) packages/material_ui/example/lib/segmented_button/segmented_button.0.dart:55— packages/material_ui/example/lib/segmented_button/segmented_button.0.dart:55-87 | packages/material_ui/example/lib/segmented_button/segmented_button.1.dart:46-78 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (32 lines × 2) packages/cupertino_ui/example/lib/context_menu/cupertino_context_menu.0.dart:37— packages/cupertino_ui/example/lib/context_menu/cupertino_context_menu.0.dart:37-68 | packages/cupertino_ui/example/lib/context_menu/cupertino_context_menu.1.dart:62-93 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (32 lines × 2) packages/google_maps_flutter/google_maps_flutter/example/lib/map_coordinates.dart:44— packages/google_maps_flutter/google_maps_flutter/example/lib/map_coordinates.dart:44-75 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_coordinates.dart:46-77 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (30 lines × 2) packages/image_picker/image_picker/example/lib/main.dart:317— packages/image_picker/image_picker/example/lib/main.dart:317-346 | packages/image_picker/image_picker_android/example/lib/main.dart:341-370 — before extracting anything, compare `packages/image_picker/image_picker/example/lib/main.dart` and `packages/image_picker/image_picker_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (30 lines × 2) packages/material_ui/example/lib/popup_menu/popup_menu.0.dart:34— packages/material_ui/example/lib/popup_menu/popup_menu.0.dart:34-63 | packages/material_ui/example/lib/popup_menu/popup_menu.1.dart:37-66 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (29 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:256— packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:256-284 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart:257-285 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart:257-285 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/marker_icons.dart:257-285 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/marker_icons.dart:257-285 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/marker_icons.dart:257-285 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (29 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:71— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:71-99 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:72-100 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:72-100 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:72-100 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:72-100 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:72-100 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (29 lines × 4) packages/camera/camera/example/lib/main.dart:366— packages/camera/camera/example/lib/main.dart:366-394 | packages/camera/camera_android/example/lib/main.dart:370-398 | packages/camera/camera_android_camerax/example/lib/main.dart:372-400 | packages/camera/camera_avfoundation/example/lib/main.dart:370-398 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (29 lines × 4) packages/material_ui/example/lib/bottom_sheet/show_bottom_sheet.0.dart:51— packages/material_ui/example/lib/bottom_sheet/show_bottom_sheet.0.dart:51-79 | packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.2.dart:52-80 | packages/material_ui/example/lib/scaffold/scaffold_messenger_state.show_snack_bar.2.dart:48-76 | packages/material_ui/example/lib/scaffold/scaffold_state.show_bottom_sheet.1.dart:51-79 — before extracting anything, compare `packages/material_ui/example/lib/bottom_sheet/show_bottom_sheet.0.dart` and `packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.2.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (26 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:165— packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:165-190 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:166-191 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart:166-191 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_circle.dart:166-191 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_circle.dart:166-191 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_circle.dart:166-191 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (26 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:95— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:95-120 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:96-121 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:96-121 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:96-121 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:96-121 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:96-121 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 183 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (26 lines × 3) packages/image_picker/image_picker/example/lib/main.dart:487— packages/image_picker/image_picker/example/lib/main.dart:487-512 | packages/image_picker/image_picker_android/example/lib/main.dart:517-542 | packages/image_picker/image_picker_ios/example/lib/main.dart:435-460 — before extracting anything, compare `packages/image_picker/image_picker/example/lib/main.dart` and `packages/image_picker/image_picker_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (26 lines × 3) packages/webview_flutter/webview_flutter/example/lib/main.dart:320— packages/webview_flutter/webview_flutter/example/lib/main.dart:320-345 | packages/webview_flutter/webview_flutter_android/example/lib/main.dart:355-380 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:360-385 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart:73— packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart:73-96 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/scrolling_map.dart:74-97 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/scrolling_map.dart:74-97 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/scrolling_map.dart:74-97 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/scrolling_map.dart:74-97 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/scrolling_map.dart:74-97 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/scrolling_map.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 6) packages/image_picker/image_picker/example/lib/main.dart:501— packages/image_picker/image_picker/example/lib/main.dart:501-524 | packages/image_picker/image_picker_android/example/lib/main.dart:531-554 | packages/image_picker/image_picker_ios/example/lib/main.dart:449-472 | packages/image_picker/image_picker_linux/example/lib/main.dart:443-466 | packages/image_picker/image_picker_macos/example/lib/main.dart:443-466 | packages/image_picker/image_picker_windows/example/lib/main.dart:443-466 — before extracting anything, compare `packages/image_picker/image_picker/example/lib/main.dart` and `packages/image_picker/image_picker_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_click.dart:59— packages/google_maps_flutter/google_maps_flutter/example/lib/map_click.dart:59-81 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_click.dart:55-77 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_click.dart:55-77 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_click.dart:55-77 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_click.dart:55-77 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_click.dart:55-77 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times.
Duplicated block (23 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:106— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:106-128 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:106-128 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:123-145 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:123-145 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:123-145 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:123-145 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/custom_marker_icon.dart:28— packages/google_maps_flutter/google_maps_flutter/example/lib/custom_marker_icon.dart:28-47 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/custom_marker_icon.dart:28-47 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/custom_marker_icon.dart:28-47 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/custom_marker_icon.dart:28-47 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/custom_marker_icon.dart:28-47 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/custom_marker_icon.dart:28-47 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times.
Duplicated block (20 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:399— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:399-418 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:419-438 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:437-456 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:437-456 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:437-456 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:437-456 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 5) packages/file_selector/file_selector/example/lib/open_image_page.dart:74— packages/file_selector/file_selector/example/lib/open_image_page.dart:74-90 | packages/file_selector/file_selector_ios/example/lib/open_image_page.dart:75-91 | packages/file_selector/file_selector_linux/example/lib/open_image_page.dart:71-87 | packages/file_selector/file_selector_macos/example/lib/open_image_page.dart:71-87 | packages/file_selector/file_selector_windows/example/lib/open_image_page.dart:71-87 — before extracting anything, compare `packages/file_selector/file_selector/example/lib/open_image_page.dart` and `packages/file_selector/file_selector_ios/example/lib/open_image_page.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:399— packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:399-415 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:417-433 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:417-433 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:417-433 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:417-433 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 5) packages/image_picker/image_picker_android/example/lib/main.dart:140— packages/image_picker/image_picker_android/example/lib/main.dart:140-152 | packages/image_picker/image_picker_ios/example/lib/main.dart:122-134 | packages/image_picker/image_picker_linux/example/lib/main.dart:117-129 | packages/image_picker/image_picker_macos/example/lib/main.dart:117-129 | packages/image_picker/image_picker_windows/example/lib/main.dart:117-129 — before extracting anything, compare `packages/image_picker/image_picker_android/example/lib/main.dart` and `packages/image_picker/image_picker_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 5) packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/AppDelegate.swift:11— packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/AppDelegate.swift:11-23 | packages/google_maps_flutter/google_maps_flutter_ios/example/ios/Runner/AppDelegate.swift:11-23 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/ios/Runner/AppDelegate.swift:11-23 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/ios/Runner/AppDelegate.swift:11-23 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/ios/Runner/AppDelegate.swift:11-23 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/ios/Runner/AppDelegate.swift` and `packages/google_maps_flutter/google_maps_flutter_ios/example/ios/Runner/AppDelegate.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 12) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:112— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:112-123 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:53-64 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart:101-112 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:53-64 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:100-111 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:70-81 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart:100-111 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:70-81 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_markers_clustering.dart:100-111 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:70-81 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart:100-111 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:70-81 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 12) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:161— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:161-172 | packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:148-159 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart:151-162 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart:145-156 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:150-161 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:139-150 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart:150-161 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart:139-150 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_markers_clustering.dart:150-161 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/clustering.dart:139-150 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart:150-161 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart:139-150 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 7) packages/go_router/example/lib/others/error_screen.dart:43— packages/go_router/example/lib/others/error_screen.dart:43-52 | packages/go_router/example/lib/others/error_screen.dart:62-71 | packages/go_router/example/lib/others/init_loc.dart:47-56 | packages/go_router/example/lib/others/init_loc.dart:66-75 | packages/go_router/example/lib/others/init_loc.dart:85-94 | packages/go_router/example/lib/others/nav_observer.dart:144-153 | packages/go_router/example/lib/others/router_neglect.dart:72-81 — there are 7 copies across 4 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (10 lines × 7) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:150— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:150-159 | packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:137-146 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart:134-143 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:128-137 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart:128-137 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/clustering.dart:128-137 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart:128-137 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 8) packages/go_router/example/lib/others/error_screen.dart:41— packages/go_router/example/lib/others/error_screen.dart:41-48 | packages/go_router/example/lib/others/error_screen.dart:60-67 | packages/go_router/example/lib/others/init_loc.dart:45-52 | packages/go_router/example/lib/others/init_loc.dart:64-71 | packages/go_router/example/lib/others/init_loc.dart:83-90 | packages/go_router/example/lib/others/nav_observer.dart:142-149 | packages/go_router/example/lib/others/router_neglect.dart:43-50 | packages/go_router/example/lib/others/router_neglect.dart:70-77 — there are 8 copies across 4 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (8 lines × 8) packages/path_provider/path_provider/example/lib/main.dart:19— packages/path_provider/path_provider/example/lib/main.dart:19-26 | packages/path_provider/path_provider_android/example/lib/main.dart:17-24 | packages/url_launcher/url_launcher/example/lib/main.dart:20-27 | packages/url_launcher/url_launcher_android/example/lib/main.dart:19-26 | packages/url_launcher/url_launcher_ios/example/lib/main.dart:19-26 | packages/url_launcher/url_launcher_linux/example/lib/main.dart:18-25 | packages/url_launcher/url_launcher_macos/example/lib/main.dart:18-25 | packages/url_launcher/url_launcher_windows/example/lib/main.dart:18-25 — before extracting anything, compare `packages/url_launcher/url_launcher/example/lib/main.dart` and `packages/url_launcher/url_launcher_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Hollow method — returns a constant without doing the work packages/material_ui/lib/src/about.dart:1214— `_defaultApplicationVersion` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
Hollow method — returns a constant without doing the work packages/material_ui/lib/src/about.dart:1219— `_defaultApplicationIcon` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
X17 · Uncapped recursion over a caller-supplied document· Recursive walk over a caller-supplied document has no depth cap · ×2
Recursive walk over a caller-supplied document has no depth cap packages/pigeon/lib/src/generator_tools.dart:478— `mergePigeonMaps` is public and takes `Map<String, Object> base` from its caller, and it calls itself at line 478 (`mergePigeonMaps`) with a piece of `base` — and nowhere in `mergePigeonMaps` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. `jsonDecode` sets no nesting limit: 2 MB of brackets parse to a million levels, while a walk like this one throws `StackOverflowError` from about 20,000 levels — 40,000 bytes (Dart 3.13 VM; on the web the limit is the browser's stack). That is an `Error`, not an `Exception`: an `on Exception catch` around the call does not stop it, so the request, the frame or the isolate fails with it. Thread a depth argument through `mergePigeonMaps` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap packages/rfw/lib/src/flutter/content.dart:29— `deepClone` is public and takes `Object ? template` from its caller, and it calls itself at line 29 (`deepClone`) with a piece of `template` (and at line 31) — and nowhere in `deepClone` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. `jsonDecode` sets no nesting limit: 2 MB of brackets parse to a million levels, while a walk like this one throws `StackOverflowError` from about 20,000 levels — 40,000 bytes (Dart 3.13 VM; on the web the limit is the browser's stack). That is an `Error`, not an `Exception`: an `on Exception catch` around the call does not stop it, so the request, the frame or the isolate fails with it. Thread a depth argument through `deepClone` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
X18 · Disposal-pattern correctness· Owned disposable field is never released · ×2
Owned disposable field is never released packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:97— `MethodChannelGoogleMapsFlutter` carries a disposal duty — it declares its own release — and it creates `_mapEventStreamController` itself (line 97, `StreamController.broadcast`), which makes that instance its own. Nothing in the class releases it — no `_mapEventStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController.broadcast` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_mapEventStreamController.close();` in `dispose()` before `super.dispose()`.
Owned disposable field is never released packages/video_player/video_player_android/lib/src/android_video_player.dart:334— `_PlayerInstance` carries a disposal duty — it declares its own release — and it creates `_eventStreamController` itself (line 334, `StreamController`), which makes that instance its own. Nothing in the class releases it — no `_eventStreamController.close()`, no tear-off of it, on any path — nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, `StreamController` outlives the object that made it — its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: `_eventStreamController.close();` in `dispose()` before `super.dispose()`.
Swallowed exception (empty catch) packages/pigeon/tool/shared/generation.dart:85— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) packages/pigeon/tool/shared/generation.dart:144— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
ThemeData.== (cyclomatic 85) packages/material_ui/lib/src/theme_data.dart:2194— ThemeData.== has cyclomatic complexity 85 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_InputDecoratorState.build (cyclomatic 64) packages/material_ui/lib/src/input_decorator.dart:2343— _InputDecoratorState.build has cyclomatic complexity 64 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
InputDecoration.== (cyclomatic 63) packages/material_ui/lib/src/input_decorator.dart:4282— InputDecoration.== has cyclomatic complexity 63 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
SwiftGenerator._varToSwift (cyclomatic 60) packages/pigeon/lib/src/swift/swift_generator.dart:1038— SwiftGenerator._varToSwift has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ThemeData.ThemeData (cyclomatic 57) packages/material_ui/lib/src/theme_data.dart:287— ThemeData.ThemeData has cyclomatic complexity 57 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
InputDecoration.toString (cyclomatic 56) packages/material_ui/lib/src/input_decorator.dart:4420— InputDecoration.toString has cyclomatic complexity 56 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_RenderRangeSlider.paint (cyclomatic 54) packages/material_ui/lib/src/range_slider.dart:1763— _RenderRangeSlider.paint has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ColorScheme.== (cyclomatic 53) packages/material_ui/lib/src/color_scheme.dart:1372— ColorScheme.== has cyclomatic complexity 53 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
RenderTableViewport._paintCells (cyclomatic 49) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1812— RenderTableViewport._paintCells has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DartGenerator._writeNativeInteropHostApi (cyclomatic 45) packages/pigeon/lib/src/dart/dart_generator.dart:1640— DartGenerator._writeNativeInteropHostApi has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
GObjectSourceGenerator._writeClassEquality (cyclomatic 45) packages/pigeon/lib/src/gobject/gobject_generator.dart:1027— GObjectSourceGenerator._writeClassEquality has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DatePickerThemeData.== (cyclomatic 43) packages/material_ui/lib/src/date_picker_theme.dart:762— DatePickerThemeData.== has cyclomatic complexity 43 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_TextFieldState.build (cyclomatic 42) packages/material_ui/lib/src/text_field.dart:1566— _TextFieldState.build has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
InputDecorationThemeData.== (cyclomatic 41) packages/material_ui/lib/src/input_decorator.dart:5765— InputDecorationThemeData.== has cyclomatic complexity 41 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_MergeableMaterialState.didUpdateWidget (cyclomatic 40) packages/material_ui/lib/src/mergeable_material.dart:279— _MergeableMaterialState.didUpdateWidget has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_AppBarState.build (cyclomatic 39) packages/material_ui/lib/src/app_bar.dart:904— _AppBarState.build has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SliderThemeData.== (cyclomatic 39) packages/material_ui/lib/src/slider_theme.dart:876— SliderThemeData.== has cyclomatic complexity 39 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_RenderDecoration.performLayout (cyclomatic 38) packages/material_ui/lib/src/input_decorator.dart:1415— _RenderDecoration.performLayout has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DataTable.build (cyclomatic 37) packages/material_ui/lib/src/data_table.dart:1074— DataTable.build has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_LocalizedShortcutLabeler._getModifierLabel (cyclomatic 37) packages/material_ui/lib/src/menu_anchor.dart:2722— _LocalizedShortcutLabeler._getModifierLabel has cyclomatic complexity 37 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
RootBuilder.results (cyclomatic 37) packages/pigeon/lib/src/pigeon_lib_internal.dart:1569— RootBuilder.results has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
RenderTableViewport._layoutCells (cyclomatic 37) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1363— RenderTableViewport._layoutCells has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
RenderTableViewport.paint (cyclomatic 37) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1567— RenderTableViewport.paint has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
UpdateExcerptsCommand._extractExcerpt (cyclomatic 37) script/tool/lib/src/update_excerpts_command.dart:215— UpdateExcerptsCommand._extractExcerpt has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_DropdownButtonState.build (cyclomatic 36) packages/material_ui/lib/src/dropdown.dart:1610— _DropdownButtonState.build has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_SliverAppBarDelegate.shouldRebuild (cyclomatic 35) packages/material_ui/lib/src/app_bar.dart:1433— _SliverAppBarDelegate.shouldRebuild has cyclomatic complexity 35 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_SnackBarState.build (cyclomatic 34) packages/material_ui/lib/src/snack_bar.dart:641— _SnackBarState.build has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
MapConfiguration.== (cyclomatic 33) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/map_configuration.dart:326— MapConfiguration.== has cyclomatic complexity 33 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_ScaffoldLayout.performLayout (cyclomatic 33) packages/material_ui/lib/src/scaffold.dart:1071— _ScaffoldLayout.performLayout has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
CubicBezier._computeBounds (cyclomatic 33) packages/material_ui/lib/src/shapes/cubic.dart:204— CubicBezier._computeBounds has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DartGenerator._writeNativeInteropFlutterApi (cyclomatic 33) packages/pigeon/lib/src/dart/dart_generator.dart:1286— DartGenerator._writeNativeInteropFlutterApi has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_RenderSliverWeightedCarousel.performLayout (cyclomatic 32) packages/material_ui/lib/src/carousel.dart:1315— _RenderSliverWeightedCarousel.performLayout has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
RootBuilder.visitClassDeclaration (cyclomatic 32) packages/pigeon/lib/src/pigeon_lib_internal.dart:2013— RootBuilder.visitClassDeclaration has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
MapConfiguration.diffFrom (cyclomatic 31) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/map_configuration.dart:185— MapConfiguration.diffFrom has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ButtonStyle.== (cyclomatic 31) packages/material_ui/lib/src/button_style.dart:663— ButtonStyle.== has cyclomatic complexity 31 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_RenderListTile._computeSizes (cyclomatic 31) packages/material_ui/lib/src/list_tile.dart:1557— _RenderListTile._computeSizes has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
MapConfiguration.isEmpty (cyclomatic 30) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/map_configuration.dart:293— MapConfiguration.isEmpty has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_DatePickerDialogState.build (cyclomatic 30) packages/material_ui/lib/src/date_picker.dart:614— _DatePickerDialogState.build has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_RenderSlider.paint (cyclomatic 30) packages/material_ui/lib/src/slider.dart:1784— _RenderSlider.paint has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SwiftGenerator._varToObjc (cyclomatic 30) packages/pigeon/lib/src/swift/swift_generator.dart:991— SwiftGenerator._varToObjc has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
RenderTableViewport.layoutChildSequence (cyclomatic 30) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1147— RenderTableViewport.layoutChildSequence has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
BenchmarkServer.run (cyclomatic 30) packages/web_benchmarks/lib/src/runner.dart:120— BenchmarkServer.run has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
VectorGraphicsCodec.decode (cyclomatic 29) packages/vector_graphics_codec/lib/vector_graphics_codec.dart:134— VectorGraphicsCodec.decode has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
_Decoration.== (cyclomatic 29) packages/material_ui/lib/src/input_decorator.dart:646— _Decoration.== has cyclomatic complexity 29 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
RefreshIndicatorState._handleScrollNotification (cyclomatic 29) packages/material_ui/lib/src/refresh_indicator.dart:439— RefreshIndicatorState._handleScrollNotification has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_SwitchPainter.paint (cyclomatic 29) packages/material_ui/lib/src/switch.dart:1487— _SwitchPainter.paint has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Pigeon.runWithOptions (cyclomatic 29) packages/pigeon/lib/src/pigeon_lib.dart:808— Pigeon.runWithOptions has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
RenderTableViewport._updateColumnMetrics (cyclomatic 29) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:717— RenderTableViewport._updateColumnMetrics has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (RenderTableViewport._updateRowMetrics) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
RenderTableViewport._updateRowMetrics (cyclomatic 29) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:843— RenderTableViewport._updateRowMetrics has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (RenderTableViewport._updateColumnMetrics) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
PackageCommand._getAllPackages (cyclomatic 29) script/tool/lib/src/common/package_command.dart:371— PackageCommand._getAllPackages has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
PlatformBitmap.createIcon (cyclomatic 29) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:11— PlatformBitmap.createIcon has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
PigeonOptions.toMap (cyclomatic 28) packages/pigeon/lib/src/pigeon_lib.dart:425— PigeonOptions.toMap has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_CupertinoTextFieldState.build (cyclomatic 27) packages/cupertino_ui/lib/src/text_field.dart:1529— _CupertinoTextFieldState.build has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
BitmapDescriptor.fromJson (cyclomatic 27) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/bitmap.dart:61— BitmapDescriptor.fromJson has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
_RenderDecoration._layout (cyclomatic 27) packages/material_ui/lib/src/input_decorator.dart:967— _RenderDecoration._layout has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_TimePickerModel.updateShouldNotifyDependent (cyclomatic 27) packages/material_ui/lib/src/time_picker.dart:165— _TimePickerModel.updateShouldNotifyDependent has cyclomatic complexity 27 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
TimePickerThemeData.== (cyclomatic 27) packages/material_ui/lib/src/time_picker_theme.dart:459— TimePickerThemeData.== has cyclomatic complexity 27 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
FfigenConfigGenerator.generate (cyclomatic 27) packages/pigeon/lib/src/swift/ffigen_config_generator.dart:47— FfigenConfigGenerator.generate has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_CupertinoDatePickerDateTimeState.build (cyclomatic 26) packages/cupertino_ui/lib/src/date_picker.dart:1220— _CupertinoDatePickerDateTimeState.build has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ChipThemeData.== (cyclomatic 26) packages/material_ui/lib/src/chip_theme.dart:615— ChipThemeData.== has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_DropdownMenuState.build (cyclomatic 26) packages/material_ui/lib/src/dropdown_menu.dart:1172— _DropdownMenuState.build has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_RailDestinationState.build (cyclomatic 26) packages/material_ui/lib/src/navigation_rail.dart:713— _RailDestinationState.build has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_SliderState._buildMaterialSlider (cyclomatic 26) packages/material_ui/lib/src/slider.dart:868— _SliderState._buildMaterialSlider has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
JnigenConfigGenerator.generate (cyclomatic 26) packages/pigeon/lib/src/kotlin/jnigen_config_generator.dart:42— JnigenConfigGenerator.generate has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
UpdateExcerptsCommand._updateExcerptsIn (cyclomatic 26) script/tool/lib/src/update_excerpts_command.dart:107— UpdateExcerptsCommand._updateExcerptsIn has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AlertDialog.build (cyclomatic 25) packages/material_ui/lib/src/dialog.dart:794— AlertDialog.build has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ListTileThemeData.== (cyclomatic 25) packages/material_ui/lib/src/list_tile_theme.dart:258— ListTileThemeData.== has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_LocalizedShortcutLabeler.getShortcutLabel (cyclomatic 25) packages/material_ui/lib/src/menu_anchor.dart:2585— _LocalizedShortcutLabeler.getShortcutLabel has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AnalyzeCommand._runDartAnalysisForPackage (cyclomatic 25) script/tool/lib/src/analyze_command.dart:247— AnalyzeCommand._runDartAnalysisForPackage has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_CupertinoButtonState.build (cyclomatic 24) packages/cupertino_ui/lib/src/button.dart:471— _CupertinoButtonState.build has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
FloatingActionButtonThemeData.== (cyclomatic 24) packages/material_ui/lib/src/floating_action_button_theme.dart:278— FloatingActionButtonThemeData.== has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
ListTile.build (cyclomatic 24) packages/material_ui/lib/src/list_tile.dart:817— ListTile.build has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_TabBarState.build (cyclomatic 24) packages/material_ui/lib/src/tabs.dart:2025— _TabBarState.build has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
GObjectSourceGenerator.writeDataClass (cyclomatic 24) packages/pigeon/lib/src/gobject/gobject_generator.dart:829— GObjectSourceGenerator.writeDataClass has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_RenderButtonBarRow.performLayout (cyclomatic 23) packages/material_ui/lib/src/button_bar.dart:380— _RenderButtonBarRow.performLayout has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
_InkResponseState.build (cyclomatic 23) packages/material_ui/lib/src/ink_well.dart:1402— _InkResponseState.build has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_LinearProgressIndicatorPainter.paint (cyclomatic 23) packages/material_ui/lib/src/progress_indicator.dart:212— _LinearProgressIndicatorPainter.paint has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_IndicatorPainter._applyElasticEffect (cyclomatic 23) packages/material_ui/lib/src/tabs.dart:688— _IndicatorPainter._applyElasticEffect has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_FfiType.getToDartCall (cyclomatic 23) packages/pigeon/lib/src/dart/dart_generator.dart:282— _FfiType.getToDartCall has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
KotlinGenerator.writeGeneralCodec (cyclomatic 23) packages/pigeon/lib/src/kotlin/kotlin_generator.dart:621— KotlinGenerator.writeGeneralCodec has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
WebKitNavigationDelegate.WebKitNavigationDelegate (cyclomatic 23) packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_webview_controller.dart:1099— WebKitNavigationDelegate.WebKitNavigationDelegate has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
FetchDepsCommand.runForPackage (cyclomatic 23) script/tool/lib/src/fetch_deps_command.dart:136— FetchDepsCommand.runForPackage has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
DefaultCamera.captureOutput (cyclomatic 23) packages/camera/camera_avfoundation/darwin/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:1398— DefaultCamera.captureOutput has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_CupertinoListTileState.build (cyclomatic 22) packages/cupertino_ui/lib/src/list_tile.dart:280— _CupertinoListTileState.build has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_Parser._readValue (cyclomatic 22) packages/rfw/lib/src/dart/text.dart:2316— _Parser._readValue has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_CurriedWidget._resolveFrom (cyclomatic 22) packages/rfw/lib/src/flutter/runtime.dart:834— _CurriedWidget._resolveFrom has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
VideoPlayerController.initialize (cyclomatic 21) packages/video_player/video_player/lib/video_player.dart:567— VideoPlayerController.initialize has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
_ButtonStyleState.build (cyclomatic 21) packages/material_ui/lib/src/button_style_button.dart:380— _ButtonStyleState.build has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_SubmenuButtonState.build (cyclomatic 21) packages/material_ui/lib/src/menu_anchor.dart:2171— _SubmenuButtonState.build has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ScaffoldState.build (cyclomatic 21) packages/material_ui/lib/src/scaffold.dart:3103— ScaffoldState.build has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_SelectToggleButtonRenderObject.paint (cyclomatic 21) packages/material_ui/lib/src/toggle_buttons.dart:1339— _SelectToggleButtonRenderObject.paint has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DriveExamplesCommand.runForPackage (cyclomatic 21) script/tool/lib/src/drive_examples_command.dart:165— DriveExamplesCommand.runForPackage has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
VersionAndChangelogValidator.validateChangelogAndVersion (cyclomatic 21) script/tool/lib/src/validators/version_and_changelog_validator.dart:111— VersionAndChangelogValidator.validateChangelogAndVersion has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
MethodCallHandlerImpl.launchBillingFlow (cyclomatic 21) packages/in_app_purchase/in_app_purchase_android/android/src/main/java/io/flutter/plugins/inapppurchase/MethodCallHandlerImpl.java:293— MethodCallHandlerImpl.launchBillingFlow has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Convert.interpretMapConfiguration (cyclomatic 21) packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/Convert.java:495— Convert.interpretMapConfiguration has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_MenuLayoutDelegate._positionChild (cyclomatic 20) packages/cupertino_ui/lib/src/menu_anchor.dart:1293— _MenuLayoutDelegate._positionChild has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AppBarThemeData.== (cyclomatic 20) packages/material_ui/lib/src/app_bar_theme.dart:565— AppBarThemeData.== has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_CheckboxState.build (cyclomatic 20) packages/material_ui/lib/src/checkbox.dart:477— _CheckboxState.build has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
_DayItemState.build (cyclomatic 20) packages/material_ui/lib/src/date_picker.dart:2909— _DayItemState.build has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_FlexibleSpaceBarState.build (cyclomatic 20) packages/material_ui/lib/src/flexible_space_bar.dart:230— _FlexibleSpaceBarState.build has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_MenuLayout._positionChild (cyclomatic 20) packages/material_ui/lib/src/menu_anchor.dart:3506— _MenuLayout._positionChild has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_NavigationRailState.build (cyclomatic 20) packages/material_ui/lib/src/navigation_rail.dart:459— _NavigationRailState.build has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_MaterialSwitchState.build (cyclomatic 20) packages/material_ui/lib/src/switch.dart:884— _MaterialSwitchState.build has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
TabBarThemeData.== (cyclomatic 20) packages/material_ui/lib/src/tab_bar_theme.dart:522— TabBarThemeData.== has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
GObjectSourceGenerator.writeHostApi (cyclomatic 20) packages/pigeon/lib/src/gobject/gobject_generator.dart:1823— GObjectSourceGenerator.writeHostApi has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SwiftGenerator._writeFfiHostApi (cyclomatic 20) packages/pigeon/lib/src/swift/swift_generator.dart:1509— SwiftGenerator._writeFfiHostApi has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
RepositoryPackage._isPathIgnoredBy (cyclomatic 20) script/tool/lib/src/common/repository_package.dart:246— RepositoryPackage._isPathIgnoredBy has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
VideoPlayerValue.== (cyclomatic 19) packages/video_player/video_player/lib/video_player.dart:328— VideoPlayerValue.== has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
LocaleInfo.fromString (cyclomatic 19) script/l10n/lib/localizations_utils.dart:31— LocaleInfo.fromString has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
CupertinoListSection.build (cyclomatic 19) packages/cupertino_ui/lib/src/list_section.dart:404— CupertinoListSection.build has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_SliverAppBarDelegate.build (cyclomatic 19) packages/material_ui/lib/src/app_bar.dart:1361— _SliverAppBarDelegate.build has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
DataTableThemeData.== (cyclomatic 19) packages/material_ui/lib/src/data_table_theme.dart:253— DataTableThemeData.== has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_DateRangePickerDialogState.build (cyclomatic 19) packages/material_ui/lib/src/date_picker.dart:1670— _DateRangePickerDialogState.build has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_InkResponseState.updateHighlight (cyclomatic 19) packages/material_ui/lib/src/ink_well.dart:1043— _InkResponseState.updateHighlight has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_SubmenuDirectionalFocusAction.invoke (cyclomatic 19) packages/material_ui/lib/src/menu_anchor.dart:2442— _SubmenuDirectionalFocusAction.invoke has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ProgressIndicatorThemeData.== (cyclomatic 19) packages/material_ui/lib/src/progress_indicator_theme.dart:250— ProgressIndicatorThemeData.== has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
RefreshIndicatorState.build (cyclomatic 19) packages/material_ui/lib/src/refresh_indicator.dart:633— RefreshIndicatorState.build has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ScaffoldState._buildBottomSheet (cyclomatic 19) packages/material_ui/lib/src/scaffold.dart:2534— ScaffoldState._buildBottomSheet has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_SegmentedButtonDefaultsM3.style (cyclomatic 19) packages/material_ui/lib/src/segmented_button.dart:1216— _SegmentedButtonDefaultsM3.style has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ToggleButtons.build (cyclomatic 19) packages/material_ui/lib/src/toggle_buttons.dart:711— ToggleButtons.build has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
TooltipThemeData.== (cyclomatic 19) packages/material_ui/lib/src/tooltip_theme.dart:243— TooltipThemeData.== has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
SwiftGenerator._writeHostMethodMessageHandler (cyclomatic 19) packages/pigeon/lib/src/swift/swift_generator.dart:2826— SwiftGenerator._writeHostMethodMessageHandler has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_VectorGraphicWidgetState.build (cyclomatic 19) packages/vector_graphics/lib/src/vector_graphics.dart:447— _VectorGraphicWidgetState.build has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
PubspecValidator.validatePubspec (cyclomatic 19) script/tool/lib/src/validators/pubspec_validator.dart:86— PubspecValidator.validatePubspec has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
VersionAndChangelogValidator._validateChangelogVersion (cyclomatic 19) script/tool/lib/src/validators/version_and_changelog_validator.dart:310— VersionAndChangelogValidator._validateChangelogVersion has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
MediaRecorderBuilder.build (cyclomatic 19) packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/media/MediaRecorderBuilder.java:96— MediaRecorderBuilder.build has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
InAppPurchasePlugin.purchase (cyclomatic 19) packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/InAppPurchasePlugin+StoreKit2.swift:42— InAppPurchasePlugin.purchase has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
CupertinoDatePicker._getColumnWidth (cyclomatic 18) packages/cupertino_ui/lib/src/date_picker.dart:557— CupertinoDatePicker._getColumnWidth has cyclomatic complexity 18 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
_SegmentedControlState.build (cyclomatic 18) REDACTED:866— _SegmentedControlState.build has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_SwitchPainter.paint (cyclomatic 18) packages/cupertino_ui/lib/src/switch.dart:1142— _SwitchPainter.paint has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
GoogleMapsFlutterAndroid.platformBitmapFromBitmapDescriptor (cyclomatic 18) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:908— GoogleMapsFlutterAndroid.platformBitmapFromBitmapDescriptor has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_RawChipState.build (cyclomatic 18) packages/material_ui/lib/src/chip.dart:1364— _RawChipState.build has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
SnackBarThemeData.== (cyclomatic 18) packages/material_ui/lib/src/snack_bar_theme.dart:280— SnackBarThemeData.== has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
TextTheme.== (cyclomatic 18) packages/material_ui/lib/src/text_theme.dart:755— TextTheme.== has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_TimePickerDialogState.build (cyclomatic 18) packages/material_ui/lib/src/time_picker.dart:2626— _TimePickerDialogState.build has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_TimePickerState.build (cyclomatic 18) packages/material_ui/lib/src/time_picker.dart:3027— _TimePickerState.build has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ToggleButtonsThemeData.== (cyclomatic 18) packages/material_ui/lib/src/toggle_buttons_theme.dart:201— ToggleButtonsThemeData.== has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_PlayerInstance._onStreamEvent (cyclomatic 18) packages/video_player/video_player_android/lib/src/android_video_player.dart:529— _PlayerInstance._onStreamEvent has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
_LargeTitleNavigationBarSliverDelegate.build (cyclomatic 17) packages/cupertino_ui/lib/src/nav_bar.dart:1515— _LargeTitleNavigationBarSliverDelegate.build has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_LargeTitleNavigationBarSliverDelegate.shouldRebuild (cyclomatic 17) packages/cupertino_ui/lib/src/nav_bar.dart:1655— _LargeTitleNavigationBarSliverDelegate.shouldRebuild has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_CupertinoSliverRefreshControlState.transitionNextState (cyclomatic 17) packages/cupertino_ui/lib/src/refresh.dart:478— _CupertinoSliverRefreshControlState.transitionNextState has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AdvancedMarker.== (cyclomatic 17) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/advanced_marker.dart:116— AdvancedMarker.== has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
Marker.== (cyclomatic 17) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/marker.dart:336— Marker.== has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
BottomNavigationBarThemeData.== (cyclomatic 17) packages/material_ui/lib/src/bottom_navigation_bar_theme.dart:217— BottomNavigationBarThemeData.== has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
DialogThemeData.== (cyclomatic 17) packages/material_ui/lib/src/dialog_theme.dart:479— DialogThemeData.== has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
PaginatedDataTableState.build (cyclomatic 17) packages/material_ui/lib/src/paginated_data_table.dart:534— PaginatedDataTableState.build has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
RoundedRectSliderTrackShape.paint (cyclomatic 17) packages/material_ui/lib/src/slider_parts.dart:428— RoundedRectSliderTrackShape.paint has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
CppHeaderGenerator.writeDataClass (cyclomatic 17) packages/pigeon/lib/src/cpp/cpp_generator.dart:289— CppHeaderGenerator.writeDataClass has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
SwiftGenerator.writeGeneralCodec (cyclomatic 17) packages/pigeon/lib/src/swift/swift_generator.dart:530— SwiftGenerator.writeGeneralCodec has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
RenderTableViewport._updateFirstAndLastVisibleCell (cyclomatic 17) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1075— RenderTableViewport._updateFirstAndLastVisibleCell has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
TextPositionNode.computeTextPosition (cyclomatic 17) packages/vector_graphics_compiler/lib/src/svg/node.dart:238— TextPositionNode.computeTextPosition has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
DriveExamplesCommand.initializeRun (cyclomatic 17) script/tool/lib/src/drive_examples_command.dart:93— DriveExamplesCommand.initializeRun has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
UpdateDependencyCommand.initializeRun (cyclomatic 17) script/tool/lib/src/update_dependency_command.dart:95— UpdateDependencyCommand.initializeRun has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
RepoInfoValidator._validateSpecificBatchWorkflow (cyclomatic 17) script/tool/lib/src/validators/repo_info_validator.dart:265— RepoInfoValidator._validateSpecificBatchWorkflow has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
CameraCaptureCallback.process (cyclomatic 17) packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/CameraCaptureCallback.java:79— CameraCaptureCallback.process has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_RadioPainter.paint (cyclomatic 16) packages/cupertino_ui/lib/src/radio.dart:571— _RadioPainter.paint has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_OnEnterHandler.handleTopOnEnter (cyclomatic 16) packages/go_router/lib/src/parser.dart:359— _OnEnterHandler.handleTopOnEnter has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
BottomSheetThemeData.== (cyclomatic 16) packages/material_ui/lib/src/bottom_sheet_theme.dart:188— BottomSheetThemeData.== has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
ButtonThemeData.== (cyclomatic 16) packages/material_ui/lib/src/button_theme.dart:702— ButtonThemeData.== has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_MonthItemState.build (cyclomatic 16) packages/material_ui/lib/src/date_picker.dart:2748— _MonthItemState.build has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
ExpansionTileThemeData.== (cyclomatic 16) packages/material_ui/lib/src/expansion_tile_theme.dart:182— ExpansionTileThemeData.== has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_InkResponseStateWidget.debugFillProperties (cyclomatic 16) packages/material_ui/lib/src/ink_well.dart:844— _InkResponseStateWidget.debugFillProperties has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
MenuStyle.== (cyclomatic 16) packages/material_ui/lib/src/menu_style.dart:225— MenuStyle.== has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
NavigationRailThemeData.== (cyclomatic 16) packages/material_ui/lib/src/navigation_rail_theme.dart:201— NavigationRailThemeData.== has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
PopupMenuThemeData.== (cyclomatic 16) packages/material_ui/lib/src/popup_menu_theme.dart:196— PopupMenuThemeData.== has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_RangeSliderState.build (cyclomatic 16) packages/material_ui/lib/src/range_slider.dart:821— _RangeSliderState.build has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_ViewContentState.build (cyclomatic 16) packages/material_ui/lib/src/search_anchor.dart:1148— _ViewContentState.build has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
SearchViewThemeData.== (cyclomatic 16) packages/material_ui/lib/src/search_view_theme.dart:170— SearchViewThemeData.== has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_RenderSegmentedButton.paint (cyclomatic 16) packages/material_ui/lib/src/segmented_button.dart:1078— _RenderSegmentedButton.paint has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
GappedSliderTrackShape.paint (cyclomatic 16) packages/material_ui/lib/src/slider_parts.dart:1063— GappedSliderTrackShape.paint has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
SliderThemeData.lerp (cyclomatic 16) packages/material_ui/lib/src/slider_theme.dart:752— SliderThemeData.lerp has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_TimePickerDialogState._dialogSize (cyclomatic 16) packages/material_ui/lib/src/time_picker.dart:2575— _TimePickerDialogState._dialogSize has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ObjcSourceGenerator._writeChannelApiBinding (cyclomatic 16) packages/pigeon/lib/src/objc/objc_generator.dart:1109— ObjcSourceGenerator._writeChannelApiBinding has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
RootBuilder._evaluateExpression (cyclomatic 16) packages/pigeon/lib/src/pigeon_lib_internal.dart:1929— RootBuilder._evaluateExpression has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SwiftGenerator._writeDataClassSignature (cyclomatic 16) packages/pigeon/lib/src/swift/swift_generator.dart:675— SwiftGenerator._writeDataClassSignature has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
SwiftGenerator._writeFfiFlutterApi (cyclomatic 16) packages/pigeon/lib/src/swift/swift_generator.dart:1374— SwiftGenerator._writeFfiFlutterApi has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_TreeViewState.toggleNode (cyclomatic 16) packages/two_dimensional_scrollables/lib/src/tree_view/tree.dart:886— _TreeViewState.toggleNode has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
BuildExamplesCommand.runForPackage (cyclomatic 16) script/tool/lib/src/build_examples_command.dart:143— BuildExamplesCommand.runForPackage has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
RepoInfoValidator._validateRootReadme (cyclomatic 16) script/tool/lib/src/validators/repo_info_validator.dart:135— RepoInfoValidator._validateRootReadme has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HackComment packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/fpsrange/FpsRangeFeature.java:33— // HACK: There is a bug in the Pixel 4A where it cannot support 60fps modes — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
TodoComment repeated across 45 files packages/cupertino_ui/lib/src/text_form_field_row.dart:53— The identical TodoComment appears in 45 files (129 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 129 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO(framework): Add unit tests to this code snippet.". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
TodoComment repeated across 110 files packages/cupertino_ui/lib/src/text_form_field_row.dart:86— The identical TodoComment appears in 110 files (311 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 311 independent debts. Fix the systemic cause once rather than file-by-file. Text: "// TODO(framework): Replace the following block with a @dartpad directive". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
_MergeableMaterialState.didUpdateWidget (cognitive 139) packages/material_ui/lib/src/mergeable_material.dart:279— _MergeableMaterialState.didUpdateWidget has cognitive complexity 139 (threshold 15). Drivers by points: if/else 22 (74 pts), loops 13 (55 pts), boolean chains 10 (nesting depth added 94). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
RenderTableViewport._paintCells (cognitive 133) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1812— RenderTableViewport._paintCells has cognitive complexity 133 (threshold 15). Drivers by points: if/else 18 (58 pts), ternaries 12 (36 pts), loops 10 (29 pts), boolean chains 8, match/switch 2 (nesting depth added 83). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DartGenerator._writeNativeInteropHostApi (cognitive 97) packages/pigeon/lib/src/dart/dart_generator.dart:1640— DartGenerator._writeNativeInteropHostApi has cognitive complexity 97 (threshold 15). Drivers by points: ternaries 19 (58 pts), if/else 15 (25 pts), boolean chains 10, match/switch 1 (3 pts), loops 1 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RenderTableViewport._layoutCells (cognitive 96) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1363— RenderTableViewport._layoutCells has cognitive complexity 96 (threshold 15). Drivers by points: if/else 6 (30 pts), ternaries 5 (25 pts), boolean chains 17, loops 4 (14 pts), match/switch 2 (10 pts) (nesting depth added 62). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_InputDecoratorState.build (cognitive 93) packages/material_ui/lib/src/input_decorator.dart:2343— _InputDecoratorState.build has cognitive complexity 93 (threshold 15). Drivers by points: ternaries 35 (61 pts), if/else 17 (19 pts), boolean chains 10, match/switch 2 (3 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DartGenerator._writeNativeInteropFlutterApi (cognitive 91) packages/pigeon/lib/src/dart/dart_generator.dart:1286— DartGenerator._writeNativeInteropFlutterApi has cognitive complexity 91 (threshold 15). Drivers by points: if/else 24 (56 pts), ternaries 8 (24 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 50). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
RootBuilder.visitClassDeclaration (cognitive 91) packages/pigeon/lib/src/pigeon_lib_internal.dart:2013— RootBuilder.visitClassDeclaration has cognitive complexity 91 (threshold 15). Drivers by points: if/else 24 (69 pts), loops 4 (16 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 59). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
GObjectSourceGenerator._writeClassEquality (cognitive 89) packages/pigeon/lib/src/gobject/gobject_generator.dart:1027— GObjectSourceGenerator._writeClassEquality has cognitive complexity 89 (threshold 15). Drivers by points: if/else 50 (73 pts), ternaries 3 (9 pts), boolean chains 5, loops 2 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CubicBezier._computeBounds (cognitive 86) packages/material_ui/lib/src/shapes/cubic.dart:204— CubicBezier._computeBounds has cognitive complexity 86 (threshold 15). Drivers by points: if/else 28 (80 pts), boolean chains 6 (nesting depth added 52). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ThemeData.== (cognitive 84) packages/material_ui/lib/src/theme_data.dart:2194— ThemeData.== has cognitive complexity 84 (threshold 15). Drivers by points: boolean chains 83, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
SwiftGenerator._varToSwift (cognitive 77) packages/pigeon/lib/src/swift/swift_generator.dart:1038— SwiftGenerator._varToSwift has cognitive complexity 77 (threshold 15). Drivers by points: ternaries 22 (46 pts), boolean chains 22, if/else 4 (8 pts), match/switch 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_RenderDecoration.performLayout (cognitive 72) packages/material_ui/lib/src/input_decorator.dart:1415— _RenderDecoration.performLayout has cognitive complexity 72 (threshold 15). Drivers by points: if/else 30 (54 pts), match/switch 5 (8 pts), ternaries 2 (8 pts), boolean chains 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_RenderRangeSlider.paint (cognitive 68) packages/material_ui/lib/src/range_slider.dart:1763— _RenderRangeSlider.paint has cognitive complexity 68 (threshold 15). Drivers by points: ternaries 21 (29 pts), if/else 14 (20 pts), boolean chains 13, loops 1 (3 pts), match/switch 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
BenchmarkServer.run (cognitive 64) packages/web_benchmarks/lib/src/runner.dart:120— BenchmarkServer.run has cognitive complexity 64 (threshold 15). Drivers by points: if/else 30 (54 pts), loops 3 (8 pts), boolean chains 1, error handling 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
InputDecoration.== (cognitive 62) packages/material_ui/lib/src/input_decorator.dart:4282— InputDecoration.== has cognitive complexity 62 (threshold 15). Drivers by points: boolean chains 60, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_LocalizedShortcutLabeler.getShortcutLabel (cognitive 62) packages/material_ui/lib/src/menu_anchor.dart:2585— _LocalizedShortcutLabeler.getShortcutLabel has cognitive complexity 62 (threshold 15). Drivers by points: if/else 26 (60 pts), boolean chains 2 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RenderTableViewport.paint (cognitive 61) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1567— RenderTableViewport.paint has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 16 (32 pts), if/else 17 (21 pts), boolean chains 8 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_AppBarState.build (cognitive 59) packages/material_ui/lib/src/app_bar.dart:904— _AppBarState.build has cognitive complexity 59 (threshold 15). Drivers by points: if/else 24 (33 pts), ternaries 12 (19 pts), boolean chains 4, match/switch 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
UpdateExcerptsCommand._updateExcerptsIn (cognitive 57) script/tool/lib/src/update_excerpts_command.dart:107— UpdateExcerptsCommand._updateExcerptsIn has cognitive complexity 57 (threshold 15). Drivers by points: if/else 18 (43 pts), match/switch 2 (8 pts), error handling 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ThemeData.ThemeData (cognitive 56) packages/material_ui/lib/src/theme_data.dart:287— ThemeData.ThemeData has cognitive complexity 56 (threshold 15). Drivers by points: ternaries 28 (30 pts), if/else 12 (15 pts), boolean chains 10, match/switch 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
_DropdownButtonState.build (cognitive 55) packages/material_ui/lib/src/dropdown.dart:1610— _DropdownButtonState.build has cognitive complexity 55 (threshold 15). Drivers by points: if/else 18 (24 pts), ternaries 13 (23 pts), boolean chains 8 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
InputDecoration.toString (cognitive 55) packages/material_ui/lib/src/input_decorator.dart:4420— InputDecoration.toString has cognitive complexity 55 (threshold 15). Drivers by points: if/else 55. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
PlatformBitmap.createIcon (cognitive 53) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:11— PlatformBitmap.createIcon has cognitive complexity 53 (threshold 15). Drivers by points: if/else 24 (49 pts), boolean chains 3, match/switch 1 (nesting depth added 25). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ColorScheme.== (cognitive 52) packages/material_ui/lib/src/color_scheme.dart:1372— ColorScheme.== has cognitive complexity 52 (threshold 15). Drivers by points: boolean chains 50, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
DataTable.build (cognitive 52) packages/material_ui/lib/src/data_table.dart:1074— DataTable.build has cognitive complexity 52 (threshold 15). Drivers by points: if/else 12 (19 pts), ternaries 11 (17 pts), boolean chains 9, loops 3 (5 pts), match/switch 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RootBuilder.results (cognitive 52) packages/pigeon/lib/src/pigeon_lib_internal.dart:1569— RootBuilder.results has cognitive complexity 52 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 10 (15 pts), boolean chains 10, ternaries 4 (10 pts), match/switch 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_MenuLayout._positionChild (cognitive 51) packages/material_ui/lib/src/menu_anchor.dart:3506— _MenuLayout._positionChild has cognitive complexity 51 (threshold 15). Drivers by points: if/else 26 (46 pts), match/switch 2 (5 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
UpdateExcerptsCommand._extractExcerpt (cognitive 51) script/tool/lib/src/update_excerpts_command.dart:215— UpdateExcerptsCommand._extractExcerpt has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (43 pts), loops 4 (5 pts), boolean chains 2, match/switch 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RepoInfoValidator._validateSpecificBatchWorkflow (cognitive 51) script/tool/lib/src/validators/repo_info_validator.dart:265— RepoInfoValidator._validateSpecificBatchWorkflow has cognitive complexity 51 (threshold 15). Drivers by points: if/else 10 (33 pts), loops 2 (10 pts), boolean chains 5, error handling 1 (3 pts) (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
_ScaffoldLayout.performLayout (cognitive 49) packages/material_ui/lib/src/scaffold.dart:1071— _ScaffoldLayout.performLayout has cognitive complexity 49 (threshold 15). Drivers by points: if/else 23 (32 pts), ternaries 4 (10 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_RenderListTile._computeSizes (cognitive 47) packages/material_ui/lib/src/list_tile.dart:1557— _RenderListTile._computeSizes has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 17 (32 pts), if/else 9 (11 pts), boolean chains 3, match/switch 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_RenderSliverWeightedCarousel.performLayout (cognitive 46) packages/material_ui/lib/src/carousel.dart:1315— _RenderSliverWeightedCarousel.performLayout has cognitive complexity 46 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 11, ternaries 5 (6 pts), loops 3 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GObjectSourceGenerator.writeDataClass (cognitive 46) packages/pigeon/lib/src/gobject/gobject_generator.dart:829— GObjectSourceGenerator.writeDataClass has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (39 pts), loops 7 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Pigeon.runWithOptions (cognitive 46) packages/pigeon/lib/src/pigeon_lib.dart:808— Pigeon.runWithOptions has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (29 pts), boolean chains 7, ternaries 2 (6 pts), loops 3 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCamera.captureOutput (cognitive 46) packages/camera/camera_avfoundation/darwin/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:1398— DefaultCamera.captureOutput has cognitive complexity 46 (threshold 15). Drivers by points: if/else 20 (41 pts), boolean chains 5 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
_RadioPainter.paint (cognitive 45) packages/cupertino_ui/lib/src/radio.dart:571— _RadioPainter.paint has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (25 pts), ternaries 5 (19 pts), boolean chains 1 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
_SwitchPainter.paint (cognitive 45) packages/material_ui/lib/src/switch.dart:1487— _SwitchPainter.paint has cognitive complexity 45 (threshold 15). Drivers by points: if/else 22 (31 pts), ternaries 8 (9 pts), boolean chains 4, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RenderTableViewport._updateColumnMetrics (cognitive 45) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:717— RenderTableViewport._updateColumnMetrics has cognitive complexity 45 (threshold 15). Drivers by points: if/else 14 (25 pts), ternaries 8 (13 pts), boolean chains 6, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (RenderTableViewport._updateRowMetrics) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
RenderTableViewport._updateRowMetrics (cognitive 45) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:843— RenderTableViewport._updateRowMetrics has cognitive complexity 45 (threshold 15). Drivers by points: if/else 14 (25 pts), ternaries 8 (13 pts), boolean chains 6, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (RenderTableViewport._updateColumnMetrics) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
OverdrawOptimizer.visitParentNode (cognitive 45) packages/vector_graphics_compiler/lib/src/svg/overdraw_optimizer.dart:159— OverdrawOptimizer.visitParentNode has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (34 pts), loops 4 (10 pts), boolean chains 1 (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
DriveExamplesCommand.runForPackage (cognitive 45) script/tool/lib/src/drive_examples_command.dart:165— DriveExamplesCommand.runForPackage has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (30 pts), loops 4 (10 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_CurriedWidget._resolveFrom (cognitive 44) packages/rfw/lib/src/flutter/runtime.dart:834— _CurriedWidget._resolveFrom has cognitive complexity 44 (threshold 15). Drivers by points: if/else 21 (43 pts), loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PackageCommand._getAllPackages (cognitive 43) script/tool/lib/src/common/package_command.dart:371— PackageCommand._getAllPackages has cognitive complexity 43 (threshold 15). Drivers by points: if/else 23 (33 pts), boolean chains 8, loops 1, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DatePickerThemeData.== (cognitive 42) packages/material_ui/lib/src/date_picker_theme.dart:762— DatePickerThemeData.== has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 41, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
WebKitNavigationDelegate.WebKitNavigationDelegate (cognitive 42) packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_webview_controller.dart:1099— WebKitNavigationDelegate.WebKitNavigationDelegate has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (31 pts), error handling 1 (5 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
_RenderSlider.paint (cognitive 41) packages/material_ui/lib/src/slider.dart:1784— _RenderSlider.paint has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 7 (14 pts), boolean chains 9, loops 1 (3 pts), match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RenderTableViewport.layoutChildSequence (cognitive 41) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1147— RenderTableViewport.layoutChildSequence has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (30 pts), boolean chains 7, ternaries 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
InputDecorationThemeData.== (cognitive 40) packages/material_ui/lib/src/input_decorator.dart:5765— InputDecorationThemeData.== has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 38, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_TextFieldState.build (cognitive 40) packages/material_ui/lib/src/text_field.dart:1566— _TextFieldState.build has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 10 (15 pts), if/else 10 (13 pts), boolean chains 10, match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_TabBarState.build (cognitive 39) packages/material_ui/lib/src/tabs.dart:2025— _TabBarState.build has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (23 pts), ternaries 4 (8 pts), boolean chains 4, match/switch 1 (3 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AnalyzeCommand._runDartAnalysisForPackage (cognitive 39) script/tool/lib/src/analyze_command.dart:247— AnalyzeCommand._runDartAnalysisForPackage has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (30 pts), boolean chains 5, loops 2 (3 pts), ternaries 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_RailDestinationState.build (cognitive 38) packages/material_ui/lib/src/navigation_rail.dart:713— _RailDestinationState.build has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 17 (28 pts), if/else 4 (7 pts), boolean chains 2, match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SliderThemeData.== (cognitive 38) packages/material_ui/lib/src/slider_theme.dart:876— SliderThemeData.== has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 36, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_SnackBarState.build (cognitive 38) packages/material_ui/lib/src/snack_bar.dart:641— _SnackBarState.build has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (19 pts), ternaries 13, boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
_MergeableMaterialState.build (cognitive 37) packages/material_ui/lib/src/mergeable_material.dart:531— _MergeableMaterialState.build has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 4 (20 pts), if/else 7 (13 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SwiftGenerator._writeFfiFlutterApi (cognitive 37) packages/pigeon/lib/src/swift/swift_generator.dart:1374— SwiftGenerator._writeFfiFlutterApi has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (21 pts), ternaries 5 (13 pts), loops 2, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GObjectSourceGenerator.writeHostApi (cognitive 36) packages/pigeon/lib/src/gobject/gobject_generator.dart:1823— GObjectSourceGenerator.writeHostApi has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 6 (7 pts), ternaries 2 (4 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_MenuLayoutDelegate._positionChild (cognitive 35) packages/cupertino_ui/lib/src/menu_anchor.dart:1293— _MenuLayoutDelegate._positionChild has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19 (29 pts), boolean chains 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AlertDialog.build (cognitive 35) packages/material_ui/lib/src/dialog.dart:794— AlertDialog.build has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 10 (19 pts), if/else 9 (11 pts), boolean chains 4, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GObjectSourceGenerator.writeFlutterApi (cognitive 35) packages/pigeon/lib/src/gobject/gobject_generator.dart:1552— GObjectSourceGenerator.writeFlutterApi has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (24 pts), ternaries 2 (6 pts), loops 3 (5 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SwiftGenerator._writeFfiHostApi (cognitive 35) packages/pigeon/lib/src/swift/swift_generator.dart:1509— SwiftGenerator._writeFfiHostApi has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 8 (20 pts), if/else 6 (8 pts), boolean chains 6, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_SliverAppBarDelegate.shouldRebuild (cognitive 34) packages/material_ui/lib/src/app_bar.dart:1433— _SliverAppBarDelegate.shouldRebuild has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 34. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_SelectToggleButtonRenderObject.paint (cognitive 34) packages/material_ui/lib/src/toggle_buttons.dart:1339— _SelectToggleButtonRenderObject.paint has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (23 pts), ternaries 5 (6 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RepositoryPackage._isPathIgnoredBy (cognitive 34) script/tool/lib/src/common/repository_package.dart:246— RepositoryPackage._isPathIgnoredBy has cognitive complexity 34 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 3 (9 pts), boolean chains 8, loops 3 (5 pts), error handling 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RefreshIndicatorState._handleScrollNotification (cognitive 33) packages/material_ui/lib/src/refresh_indicator.dart:439— RefreshIndicatorState._handleScrollNotification has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
InAppPurchasePlugin.purchase (cognitive 33) packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/InAppPurchasePlugin+StoreKit2.swift:42— InAppPurchasePlugin.purchase has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (23 pts), match/switch 2 (5 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MapConfiguration.== (cognitive 32) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/map_configuration.dart:326— MapConfiguration.== has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 30, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_DatePickerDialogState.build (cognitive 32) packages/material_ui/lib/src/date_picker.dart:614— _DatePickerDialogState.build has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 10 (12 pts), match/switch 3 (4 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_RenderDecoration._layout (cognitive 32) packages/material_ui/lib/src/input_decorator.dart:967— _RenderDecoration._layout has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 21 (25 pts), if/else 4, boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
_SegmentedButtonDefaultsM3.style (cognitive 32) packages/material_ui/lib/src/segmented_button.dart:1216— _SegmentedButtonDefaultsM3.style has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20 (32 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SwiftGenerator._writeHostMethodMessageHandler (cognitive 32) packages/pigeon/lib/src/swift/swift_generator.dart:2826— SwiftGenerator._writeHostMethodMessageHandler has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (17 pts), ternaries 7 (12 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_Parser._readValue (cognitive 32) packages/rfw/lib/src/dart/text.dart:2316— _Parser._readValue has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (29 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_RenderSegmentedButton.paint (cognitive 31) packages/material_ui/lib/src/segmented_button.dart:1078— _RenderSegmentedButton.paint has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 5 (15 pts), if/else 8 (12 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_CupertinoDatePickerDateTimeState.build (cognitive 30) packages/cupertino_ui/lib/src/date_picker.dart:1220— _CupertinoDatePickerDateTimeState.build has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 4 (6 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MapConfiguration.diffFrom (cognitive 30) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/map_configuration.dart:185— MapConfiguration.diffFrom has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 30. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ButtonStyle.== (cognitive 30) packages/material_ui/lib/src/button_style.dart:663— ButtonStyle.== has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 28, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_DropdownMenuState.build (cognitive 30) packages/material_ui/lib/src/dropdown_menu.dart:1172— _DropdownMenuState.build has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (16 pts), ternaries 11 (12 pts), boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
_LinearProgressIndicatorPainter.paint (cognitive 30) packages/material_ui/lib/src/progress_indicator.dart:212— _LinearProgressIndicatorPainter.paint has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 8 (13 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ObjcSourceGenerator._writeChannelApiBinding (cognitive 30) packages/pigeon/lib/src/objc/objc_generator.dart:1109— ObjcSourceGenerator._writeChannelApiBinding has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (25 pts), ternaries 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SwiftGenerator.writeGeneralCodec (cognitive 30) packages/pigeon/lib/src/swift/swift_generator.dart:530— SwiftGenerator.writeGeneralCodec has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 3 (9 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
VersionAndChangelogValidator._validateChangelogVersion (cognitive 30) script/tool/lib/src/validators/version_and_changelog_validator.dart:310— VersionAndChangelogValidator._validateChangelogVersion has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 3 (4 pts), boolean chains 2, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_CupertinoSliverRefreshControlState.transitionNextState (cognitive 29) packages/cupertino_ui/lib/src/refresh.dart:478— _CupertinoSliverRefreshControlState.transitionNextState has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 1, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
BitmapDescriptor.fromJson (cognitive 29) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/bitmap.dart:61— BitmapDescriptor.fromJson has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 13, ternaries 4 (8 pts), if/else 4 (7 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
MapConfiguration.isEmpty (cognitive 29) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/map_configuration.dart:293— MapConfiguration.isEmpty has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 29. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
RoundedPolygon._buildCubics (cognitive 29) packages/material_ui/lib/src/shapes/rounded_polygon.dart:429— RoundedPolygon._buildCubics has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SwiftGenerator._varToObjc (cognitive 29) packages/pigeon/lib/src/swift/swift_generator.dart:991— SwiftGenerator._varToObjc has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 8 (16 pts), boolean chains 7, if/else 3 (5 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_DateRangePickerDialogState.build (cognitive 28) packages/material_ui/lib/src/date_picker.dart:1670— _DateRangePickerDialogState.build has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 13 (26 pts), boolean chains 1, match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
_Decoration.== (cognitive 28) packages/material_ui/lib/src/input_decorator.dart:646— _Decoration.== has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 26, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
KotlinGenerator.writeGeneralCodec (cognitive 28) packages/pigeon/lib/src/kotlin/kotlin_generator.dart:621— KotlinGenerator.writeGeneralCodec has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 7, ternaries 3, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
FfigenConfigGenerator.generate (cognitive 28) packages/pigeon/lib/src/swift/ffigen_config_generator.dart:47— FfigenConfigGenerator.generate has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 11, boolean chains 7, if/else 5 (7 pts), loops 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
_CurriedWidget._listLookup (cognitive 28) packages/rfw/lib/src/flutter/runtime.dart:752— _CurriedWidget._listLookup has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 2 (4 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_VectorGraphicWidgetState.build (cognitive 28) packages/vector_graphics/lib/src/vector_graphics.dart:447— _VectorGraphicWidgetState.build has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PubspecValidator.validatePubspec (cognitive 28) script/tool/lib/src/validators/pubspec_validator.dart:86— PubspecValidator.validatePubspec has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 1 (3 pts), ternaries 2, boolean chains 1, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MediaRecorderBuilder.build (cognitive 28) packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/media/MediaRecorderBuilder.java:96— MediaRecorderBuilder.build has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 6 (14 pts), boolean chains 7, if/else 5 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_SubmenuDirectionalFocusAction.invoke (cognitive 27) packages/material_ui/lib/src/menu_anchor.dart:2442— _SubmenuDirectionalFocusAction.invoke has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (26 pts), match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
PigeonOptions.toMap (cognitive 27) packages/pigeon/lib/src/pigeon_lib.dart:425— PigeonOptions.toMap has cognitive complexity 27 (threshold 15). Drivers by points: if/else 27. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
BuildExamplesCommand.runForPackage (cognitive 27) script/tool/lib/src/build_examples_command.dart:143— BuildExamplesCommand.runForPackage has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 3 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
UpdateDependencyCommand._runForAndroidDependencyOnExamples (cognitive 27) script/tool/lib/src/update_dependency_command.dart:270— UpdateDependencyCommand._runForAndroidDependencyOnExamples has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 2 (3 pts), ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CupertinoListSection.build (cognitive 26) packages/cupertino_ui/lib/src/list_section.dart:404— CupertinoListSection.build has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 3 (6 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_TypeHelperIterable._decode (cognitive 26) packages/go_router_builder/lib/src/type_helpers.dart:557— _TypeHelperIterable._decode has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_FlexibleSpaceBarState.build (cognitive 26) packages/material_ui/lib/src/flexible_space_bar.dart:230— _FlexibleSpaceBarState.build has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 4 (11 pts), if/else 6 (10 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_RenderDecoration.paint (cognitive 26) packages/material_ui/lib/src/input_decorator.dart:1634— _RenderDecoration.paint has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 3 (10 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_TimePickerModel.updateShouldNotifyDependent (cognitive 26) packages/material_ui/lib/src/time_picker.dart:165— _TimePickerModel.updateShouldNotifyDependent has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 13, if/else 13. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
TimePickerThemeData.== (cognitive 26) packages/material_ui/lib/src/time_picker_theme.dart:459— TimePickerThemeData.== has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 24, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
JnigenConfigGenerator.generate (cognitive 26) packages/pigeon/lib/src/kotlin/jnigen_config_generator.dart:42— JnigenConfigGenerator.generate has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 9, boolean chains 7, if/else 6 (7 pts), loops 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
RootBuilder._expressionToMap (cognitive 26) packages/pigeon/lib/src/pigeon_lib_internal.dart:1786— RootBuilder._expressionToMap has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (20 pts), loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_WidgetState.applySetState (cognitive 26) packages/rfw/lib/src/flutter/runtime.dart:1207— _WidgetState.applySetState has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
UpdateDependencyCommand.initializeRun (cognitive 26) script/tool/lib/src/update_dependency_command.dart:95— UpdateDependencyCommand.initializeRun has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (21 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RepoInfoValidator._validateRootReadme (cognitive 26) script/tool/lib/src/validators/repo_info_validator.dart:135— RepoInfoValidator._validateRootReadme has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 9, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MarkersController.changeMarkers (cognitive 26) packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/MarkersController.java:88— MarkersController.changeMarkers has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 3, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_CheckboxPainter.paint (cognitive 25) packages/material_ui/lib/src/checkbox.dart:790— _CheckboxPainter.paint has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 2, ternaries 1 (2 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ChipThemeData.== (cognitive 25) packages/material_ui/lib/src/chip_theme.dart:615— ChipThemeData.== has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 23, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_NavigationRailState.build (cognitive 25) packages/material_ui/lib/src/navigation_rail.dart:459— _NavigationRailState.build has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 8 (13 pts), if/else 6 (7 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_IndicatorPainter._applyElasticEffect (cognitive 25) packages/material_ui/lib/src/tabs.dart:688— _IndicatorPainter._applyElasticEffect has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (10 pts), match/switch 5 (7 pts), ternaries 4 (6 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
CppSourceGenerator.writeGeneralCodec (cognitive 25) packages/pigeon/lib/src/cpp/cpp_generator.dart:1585— CppSourceGenerator.writeGeneralCodec has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 3 (9 pts), loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RootBuilder._evaluateExpression (cognitive 25) packages/pigeon/lib/src/pigeon_lib_internal.dart:1929— RootBuilder._evaluateExpression has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (23 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PublishCommand.getPackagesToProcess (cognitive 25) script/tool/lib/src/publish_command.dart:187— PublishCommand.getPackagesToProcess has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (19 pts), error handling 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MethodCallHandlerImpl.launchBillingFlow (cognitive 25) packages/in_app_purchase/in_app_purchase_android/android/src/main/java/io/flutter/plugins/inapppurchase/MethodCallHandlerImpl.java:293— MethodCallHandlerImpl.launchBillingFlow has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
_CupertinoTextFieldState.build (cognitive 24) packages/cupertino_ui/lib/src/text_field.dart:1529— _CupertinoTextFieldState.build has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 9 (11 pts), if/else 6 (7 pts), boolean chains 5, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
_RenderButtonBarRow.performLayout (cognitive 24) packages/material_ui/lib/src/button_bar.dart:380— _RenderButtonBarRow.performLayout has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 5 (16 pts), if/else 3 (5 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 14). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
_ButtonStyleState.build (cognitive 24) packages/material_ui/lib/src/button_style_button.dart:380— _ButtonStyleState.build has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 7, ternaries 3, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ListTile.build (cognitive 24) packages/material_ui/lib/src/list_tile.dart:817— ListTile.build has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 8, if/else 8, ternaries 7 (8 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ListTileThemeData.== (cognitive 24) packages/material_ui/lib/src/list_tile_theme.dart:258— ListTileThemeData.== has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 22, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
KotlinGenerator._writeHostMethodMessageHandler (cognitive 24) packages/pigeon/lib/src/kotlin/kotlin_generator.dart:1810— KotlinGenerator._writeHostMethodMessageHandler has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 5 (8 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Xcode.runXcodeBuild (cognitive 24) script/tool/lib/src/common/xcode.dart:32— Xcode.runXcodeBuild has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
LocaleInfo.fromString (cognitive 23) script/l10n/lib/localizations_utils.dart:31— LocaleInfo.fromString has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 4 (8 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_RenderChip.performLayout (cognitive 23) packages/material_ui/lib/src/chip.dart:2027— _RenderChip.performLayout has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 1 (3 pts), boolean chains 2, match/switch 2 (nesting depth added 8). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
_DayItemState.build (cognitive 23) packages/material_ui/lib/src/date_picker.dart:2909— _DayItemState.build has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 3 (5 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
_DropdownMenuState._buildButtons (cognitive 23) packages/material_ui/lib/src/dropdown_menu.dart:933— _DropdownMenuState._buildButtons has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 5 (9 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FloatingActionButtonThemeData.== (cognitive 23) packages/material_ui/lib/src/floating_action_button_theme.dart:278— FloatingActionButtonThemeData.== has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 21, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
MaterialShapes._doRepeat (cognitive 23) packages/material_ui/lib/src/material_shapes.dart:429— MaterialShapes._doRepeat has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 2 (9 pts), loops 3 (7 pts), if/else 3 (6 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RoundedRectSliderTrackShape.paint (cognitive 23) packages/material_ui/lib/src/slider_parts.dart:428— RoundedRectSliderTrackShape.paint has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (13 pts), if/else 6 (7 pts), boolean chains 2, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CreateAllPackagesAppCommand._adjustFile (cognitive 23) script/tool/lib/src/create_all_packages_app_command.dart:171— CreateAllPackagesAppCommand._adjustFile has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
VersionAndChangelogValidator.validateChangelogAndVersion (cognitive 23) script/tool/lib/src/validators/version_and_changelog_validator.dart:111— VersionAndChangelogValidator.validateChangelogAndVersion has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, error handling 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RouteConfiguration._debugCheckStatefulShellBranchDefaultLocations (cognitive 22) packages/go_router/lib/src/configuration.dart:132— RouteConfiguration._debugCheckStatefulShellBranchDefaultLocations has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (12 pts), ternaries 1 (5 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ScaffoldState.build (cognitive 22) packages/material_ui/lib/src/scaffold.dart:3103— ScaffoldState.build has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9, ternaries 5 (7 pts), boolean chains 5, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
_SwitchPainter._paintThumbWith (cognitive 22) packages/material_ui/lib/src/switch.dart:1761— _SwitchPainter._paintThumbWith has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (18 pts), boolean chains 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Xcode.findBestAvailableIphoneSimulator (cognitive 22) script/tool/lib/src/common/xcode.dart:135— Xcode.findBestAvailableIphoneSimulator has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FetchDepsCommand.runForPackage (cognitive 22) script/tool/lib/src/fetch_deps_command.dart:136— FetchDepsCommand.runForPackage has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3 (5 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_CupertinoButtonState.build (cognitive 21) packages/cupertino_ui/lib/src/button.dart:471— _CupertinoButtonState.build has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 14, if/else 4, boolean chains 2, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_CupertinoTimerPickerState.build (cognitive 21) packages/cupertino_ui/lib/src/date_picker.dart:2764— _CupertinoTimerPickerState.build has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_OnEnterHandler.handleTopOnEnter (cognitive 21) packages/go_router/lib/src/parser.dart:359— _OnEnterHandler.handleTopOnEnter has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 5 (8 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_InkResponseState.updateHighlight (cognitive 21) packages/material_ui/lib/src/ink_well.dart:1043— _InkResponseState.updateHighlight has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 3 (5 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_SubmenuButtonState.build (cognitive 21) packages/material_ui/lib/src/menu_anchor.dart:2171— _SubmenuButtonState.build has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (15 pts), ternaries 3, boolean chains 2, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
RefreshIndicatorState.build (cognitive 21) packages/material_ui/lib/src/refresh_indicator.dart:633— RefreshIndicatorState.build has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (12 pts), match/switch 2 (5 pts), if/else 3, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_SliderState._buildMaterialSlider (cognitive 21) packages/material_ui/lib/src/slider.dart:868— _SliderState._buildMaterialSlider has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 5 (6 pts), match/switch 3, boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
_FfiType.getToDartCall (cognitive 21) packages/pigeon/lib/src/dart/dart_generator.dart:282— _FfiType.getToDartCall has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 6, boolean chains 5, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
JavaGenerator._writeHostMethodMessageHandler (cognitive 21) packages/pigeon/lib/src/java/java_generator.dart:1137— JavaGenerator._writeHostMethodMessageHandler has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 4 (7 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SwiftGenerator._writeDataClassSignature (cognitive 21) packages/pigeon/lib/src/swift/swift_generator.dart:675— SwiftGenerator._writeDataClassSignature has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 5 (6 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
SvgParser._parseTree (cognitive 21) packages/vector_graphics_compiler/lib/src/svg/parser.dart:771— SvgParser._parseTree has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DriveExamplesCommand.initializeRun (cognitive 21) script/tool/lib/src/drive_examples_command.dart:93— DriveExamplesCommand.initializeRun has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Convert.interpretMapConfiguration (cognitive 21) packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/Convert.java:495— Convert.interpretMapConfiguration has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
GoogleSignInIOS._getAuthorizationTokens (cognitive 20) packages/google_sign_in/google_sign_in_ios/lib/google_sign_in_ios.dart:146— GoogleSignInIOS._getAuthorizationTokens has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, match/switch 1 (2 pts), ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CupertinoDatePicker._getColumnWidth (cognitive 20) packages/cupertino_ui/lib/src/date_picker.dart:557— CupertinoDatePicker._getColumnWidth has cognitive complexity 20 (threshold 15). Drivers by points: loops 6 (13 pts), ternaries 1 (3 pts), if/else 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
_CupertinoDatePickerMonthYearState.build (cognitive 20) packages/cupertino_ui/lib/src/date_picker.dart:2034— _CupertinoDatePickerMonthYearState.build has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 5 (9 pts), loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_SwitchPainter._paintThumbWith (cognitive 20) packages/cupertino_ui/lib/src/switch.dart:1343— _SwitchPainter._paintThumbWith has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_InkResponseState.build (cognitive 20) packages/material_ui/lib/src/ink_well.dart:1402— _InkResponseState.build has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 16, boolean chains 2, loops 1, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_LocalizedShortcutLabeler._getModifierLabel (cognitive 20) packages/material_ui/lib/src/menu_anchor.dart:2722— _LocalizedShortcutLabeler._getModifierLabel has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, match/switch 4 (8 pts), if/else 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PaginatedDataTableState.build (cognitive 20) packages/material_ui/lib/src/paginated_data_table.dart:534— PaginatedDataTableState.build has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 8, boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
_MaterialSwitchState.build (cognitive 20) packages/material_ui/lib/src/switch.dart:884— _MaterialSwitchState.build has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 9 (15 pts), match/switch 2 (3 pts), boolean chains 1, if/else 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_TimePickerDialogState.build (cognitive 20) packages/material_ui/lib/src/time_picker.dart:2626— _TimePickerDialogState.build has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 10 (14 pts), boolean chains 3, if/else 2, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_TimePickerState.build (cognitive 20) packages/material_ui/lib/src/time_picker.dart:3027— _TimePickerState.build has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (14 pts), match/switch 4 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DartGenerator.writeGeneralCodec (cognitive 20) packages/pigeon/lib/src/dart/dart_generator.dart:1171— DartGenerator.writeGeneralCodec has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (17 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Runtime._checkForImportLoops (cognitive 20) packages/rfw/lib/src/flutter/runtime.dart:359— Runtime._checkForImportLoops has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (6 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MakeDepsPathBasedCommand._findLocalPackages (cognitive 20) script/tool/lib/src/make_deps_path_based_command.dart:111— MakeDepsPathBasedCommand._findLocalPackages has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GradleValidator._validateCompileSdkUsage (cognitive 20) script/tool/lib/src/validators/gradle_validator.dart:676— GradleValidator._validateCompileSdkUsage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ReadmeValidator._validateCodeBlocks (cognitive 20) script/tool/lib/src/validators/readme_validator.dart:110— ReadmeValidator._validateCodeBlocks has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TextureBasedVideoPlayer.copyPixelBuffer (cognitive 20) packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/TextureBasedVideoPlayer.swift:133— TextureBasedVideoPlayer.copyPixelBuffer has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RouteMatchList._removeRouteMatchFromList (cognitive 19) packages/go_router/lib/src/match.dart:779— RouteMatchList._removeRouteMatchFromList has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AppBarThemeData.== (cognitive 19) packages/material_ui/lib/src/app_bar_theme.dart:565— AppBarThemeData.== has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 17, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_ExpansionPanelListState.build (cognitive 19) packages/material_ui/lib/src/expansion_panel.dart:386— _ExpansionPanelListState.build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 3 (7 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
IconButton.build (cognitive 19) packages/material_ui/lib/src/icon_button.dart:784— IconButton.build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 5 (8 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TabBarThemeData.== (cognitive 19) packages/material_ui/lib/src/tab_bar_theme.dart:522— TabBarThemeData.== has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 17, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
RootBuilder.visitMethodDeclaration (cognitive 19) packages/pigeon/lib/src/pigeon_lib_internal.dart:2281— RootBuilder.visitMethodDeclaration has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 4, loops 1 (3 pts), match/switch 1 (3 pts), ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SwiftGenerator._writeProxyApiMessageHandlerMethod (cognitive 19) packages/pigeon/lib/src/swift/swift_generator.dart:3299— SwiftGenerator._writeProxyApiMessageHandlerMethod has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4 (8 pts), loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Runtime._applyConstructorAndBindArguments (cognitive 19) packages/rfw/lib/src/flutter/runtime.dart:434— Runtime._applyConstructorAndBindArguments has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (19 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
RenderTreeViewport._paintRows (cognitive 19) packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart:546— RenderTreeViewport._paintRows has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 2 (6 pts), loops 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PackageLoopingCommand._runInternal (cognitive 19) script/tool/lib/src/common/package_looping_command.dart:279— PackageLoopingCommand._runInternal has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 3, boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Convert.getBitmapFromAsset (cognitive 19) packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/Convert.java:266— Convert.getBitmapFromAsset has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 2 (6 pts), boolean chains 3, error handling 1 (2 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
2.onResult (cognitive 19) packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileSelectorApiImpl.java:161— 2.onResult has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefaultCamera.setCaptureSessionPreset (cognitive 19) packages/camera/camera_avfoundation/darwin/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:276— DefaultCamera.setCaptureSessionPreset has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
VideoPlayerValue.== (cognitive 18) packages/video_player/video_player/lib/video_player.dart:328— VideoPlayerValue.== has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 18. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_CupertinoDatePickerDateState.build (cognitive 18) packages/cupertino_ui/lib/src/date_picker.dart:1678— _CupertinoDatePickerDateState.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 4 (7 pts), loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_SegmentedControlState.build (cognitive 18) REDACTED:866— _SegmentedControlState.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 2 (3 pts), ternaries 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_SwitchPainter.paint (cognitive 18) packages/cupertino_ui/lib/src/switch.dart:1142— _SwitchPainter.paint has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7, match/switch 3 (5 pts), ternaries 4, boolean chains 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_SliverAppBarDelegate.build (cognitive 18) packages/material_ui/lib/src/app_bar.dart:1361— _SliverAppBarDelegate.build has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, ternaries 5 (6 pts), match/switch 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_RawChipState.didUpdateWidget (cognitive 18) packages/material_ui/lib/src/chip.dart:1254— _RawChipState.didUpdateWidget has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DataTableThemeData.== (cognitive 18) packages/material_ui/lib/src/data_table_theme.dart:253— DataTableThemeData.== has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 16, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_MonthItemState.build (cognitive 18) packages/material_ui/lib/src/date_picker.dart:2748— _MonthItemState.build has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 3 (5 pts), loops 2, ternaries 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_MenuItemLabel.build (cognitive 18) packages/material_ui/lib/src/menu_anchor.dart:3322— _MenuItemLabel.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 2 (6 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ProgressIndicatorThemeData.== (cognitive 18) packages/material_ui/lib/src/progress_indicator_theme.dart:250— ProgressIndicatorThemeData.== has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 16, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
ScaffoldState._buildBottomSheet (cognitive 18) packages/material_ui/lib/src/scaffold.dart:2534— ScaffoldState._buildBottomSheet has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 5, ternaries 2. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_RenderSlider._startInteraction (cognitive 18) packages/material_ui/lib/src/slider.dart:1636— _RenderSlider._startInteraction has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ToggleButtons.build (cognitive 18) packages/material_ui/lib/src/toggle_buttons.dart:711— ToggleButtons.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, boolean chains 5, match/switch 2 (3 pts), ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
TooltipThemeData.== (cognitive 18) packages/material_ui/lib/src/tooltip_theme.dart:243— TooltipThemeData.== has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 16, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
CppHeaderGenerator.writeDataClass (cognitive 18) packages/pigeon/lib/src/cpp/cpp_generator.dart:289— CppHeaderGenerator.writeDataClass has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 4, boolean chains 3, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
ObjcHeaderGenerator.writeHostApi (cognitive 18) packages/pigeon/lib/src/objc/objc_generator.dart:374— ObjcHeaderGenerator.writeHostApi has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ObjcSourceGenerator.writeGeneralCodec (cognitive 18) packages/pigeon/lib/src/objc/objc_generator.dart:844— ObjcSourceGenerator.writeGeneralCodec has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 4 (8 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_WidgetState.handler (cognitive 18) packages/rfw/lib/src/flutter/runtime.dart:1370— _WidgetState.handler has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (3 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
RenderTableViewport._updateFirstAndLastVisibleCell (cognitive 18) packages/two_dimensional_scrollables/lib/src/table_view/table.dart:1075— RenderTableViewport._updateFirstAndLastVisibleCell has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (8 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
RenderTreeViewport._updateRowMetrics (cognitive 18) packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart:255— RenderTreeViewport._updateRowMetrics has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 2, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TextPositionNode.computeTextPosition (cognitive 18) packages/vector_graphics_compiler/lib/src/svg/node.dart:238— TextPositionNode.computeTextPosition has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, ternaries 3 (5 pts), if/else 2 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
SvgParser._readSubtree (cognitive 18) packages/vector_graphics_compiler/lib/src/svg/parser.dart:670— SvgParser._readSubtree has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AnalyzeCommand.runForPackage (cognitive 18) script/tool/lib/src/analyze_command.dart:166— AnalyzeCommand.runForPackage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GradleValidator._validateJavaKotlinCompilerOptionsAlignment (cognitive 18) script/tool/lib/src/validators/gradle_validator.dart:602— GradleValidator._validateJavaKotlinCompilerOptionsAlignment has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PubspecValidator._checkForMinimumVersionError (cognitive 18) script/tool/lib/src/validators/pubspec_validator.dart:376— PubspecValidator._checkForMinimumVersionError has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RepoInfoValidator._validateGlobalWorkflowTrigger (cognitive 18) script/tool/lib/src/validators/repo_info_validator.dart:329— RepoInfoValidator._validateGlobalWorkflowTrigger has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
VersionAndChangelogValidator._checkForMissingChangeError (cognitive 18) script/tool/lib/src/validators/version_and_changelog_validator.dart:490— VersionAndChangelogValidator._checkForMissingChangeError has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Convert.getBitmapFromBytes (cognitive 18) packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/Convert.java:134— Convert.getBitmapFromBytes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 2 (6 pts), boolean chains 3, error handling 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CameraPlugin.availableCameras (cognitive 17) packages/camera/camera_web/lib/src/camera_web.dart:95— CameraPlugin.availableCameras has cognitive complexity 17 (threshold 15). Drivers by points: loops 2 (6 pts), if/else 2 (4 pts), ternaries 1 (4 pts), error handling 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_CupertinoListTileState.build (cognitive 17) packages/cupertino_ui/lib/src/list_tile.dart:280— _CupertinoListTileState.build has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 3 (4 pts), match/switch 3, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
_RenderSegmentedControl.paint (cognitive 17) REDACTED:1403— _RenderSegmentedControl.paint has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GoRouterDelegate.setNewRoutePath (cognitive 17) packages/go_router/lib/src/delegate.dart:223— GoRouterDelegate.setNewRoutePath has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GoogleMapsFlutterAndroid.platformBitmapFromBitmapDescriptor (cognitive 17) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:908— GoogleMapsFlutterAndroid.platformBitmapFromBitmapDescriptor has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (13 pts), match/switch 2 (3 pts), if/else 1 (nesting depth added 8). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
_DatePickerHeader.build (cognitive 17) packages/material_ui/lib/src/date_picker.dart:977— _DatePickerHeader.build has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9 (12 pts), if/else 2 (4 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_ViewContentState.build (cognitive 17) packages/material_ui/lib/src/search_anchor.dart:1148— _ViewContentState.build has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8 (10 pts), boolean chains 4, if/else 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
SnackBarThemeData.== (cognitive 17) packages/material_ui/lib/src/snack_bar_theme.dart:280— SnackBarThemeData.== has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 15, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_TabBarState.didUpdateWidget (cognitive 17) packages/material_ui/lib/src/tabs.dart:1816— _TabBarState.didUpdateWidget has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 8 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TextTheme.== (cognitive 17) packages/material_ui/lib/src/text_theme.dart:755— TextTheme.== has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 15, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
ToggleButtonsThemeData.== (cognitive 17) packages/material_ui/lib/src/toggle_buttons_theme.dart:201— ToggleButtonsThemeData.== has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 15, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
KotlinGenerator._writeMethodDeclaration (cognitive 17) packages/pigeon/lib/src/kotlin/kotlin_generator.dart:1746— KotlinGenerator._writeMethodDeclaration has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 6 (7 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
RootBuilder.visitTopLevelVariableDeclaration (cognitive 17) packages/pigeon/lib/src/pigeon_lib_internal.dart:1865— RootBuilder.visitTopLevelVariableDeclaration has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PackageCommand._everyTopLevelPackage (cognitive 17) script/tool/lib/src/common/package_command.dart:544— PackageCommand._everyTopLevelPackage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CreateAllPackagesAppCommand._pubspecMapString (cognitive 17) script/tool/lib/src/create_all_packages_app_command.dart:359— CreateAllPackagesAppCommand._pubspecMapString has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
LicenseCheckCommand._checkCodeLicenses (cognitive 17) script/tool/lib/src/license_check_command.dart:220— LicenseCheckCommand._checkCodeLicenses has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PodspecCheckCommand.runForPackage (cognitive 17) script/tool/lib/src/podspec_check_command.dart:57— PodspecCheckCommand.runForPackage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ImagePickerDelegate.getPathsFromIntent (cognitive 17) packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerDelegate.java:719— ImagePickerDelegate.getPathsFromIntent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FpsRangeFeature.<init> (cognitive 17) packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/fpsrange/FpsRangeFeature.java:29— FpsRangeFeature.<init> has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ResolutionFeature.getBestAvailableCamcorderProfileForResolutionPresetLegacy (cognitive 17) packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:166— ResolutionFeature.getBestAvailableCamcorderProfileForResolutionPresetLegacy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AndroidScopedStorageXFile.openRead (cognitive 16) packages/cross_file/cross_file_android/lib/src/android_scoped_storage_cross_file.dart:56— AndroidScopedStorageXFile.openRead has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_CupertinoSliverNavigationBarState._handleScrollChange (cognitive 16) packages/cupertino_ui/lib/src/nav_bar.dart:1319— _CupertinoSliverNavigationBarState._handleScrollChange has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, ternaries 3 (5 pts), if/else 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
_LargeTitleNavigationBarSliverDelegate.build (cognitive 16) packages/cupertino_ui/lib/src/nav_bar.dart:1515— _LargeTitleNavigationBarSliverDelegate.build has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7, boolean chains 6, if/else 3. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
_LargeTitleNavigationBarSliverDelegate.shouldRebuild (cognitive 16) packages/cupertino_ui/lib/src/nav_bar.dart:1655— _LargeTitleNavigationBarSliverDelegate.shouldRebuild has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 16. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
AdvancedMarker.== (cognitive 16) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/advanced_marker.dart:116— AdvancedMarker.== has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
Marker.== (cognitive 16) packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/marker.dart:336— Marker.== has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
BottomNavigationBarThemeData.== (cognitive 16) packages/material_ui/lib/src/bottom_navigation_bar_theme.dart:217— BottomNavigationBarThemeData.== has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
_RawChipState.build (cognitive 16) packages/material_ui/lib/src/chip.dart:1364— _RawChipState.build has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 13, boolean chains 2, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DialogThemeData.== (cognitive 16) packages/material_ui/lib/src/dialog_theme.dart:479— DialogThemeData.== has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
InkFeature._getPaintTransform (cognitive 16) packages/material_ui/lib/src/material.dart:714— InkFeature._getPaintTransform has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3, boolean chains 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_CircularProgressIndicatorPainter.paint (cognitive 16) packages/material_ui/lib/src/progress_indicator.dart:724— _CircularProgressIndicatorPainter.paint has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
_RangeSliderState.build (cognitive 16) packages/material_ui/lib/src/range_slider.dart:821— _RangeSliderState.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, ternaries 4 (5 pts), boolean chains 3, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
MeasuredPolygon.measure (cognitive 16) packages/material_ui/lib/src/shapes/polygon_measure.dart:54— MeasuredPolygon.measure has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (8 pts), if/else 4 (7 pts), boolean chains 1 (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
_TimePickerInputState._parseHour (cognitive 16) packages/material_ui/lib/src/time_picker.dart:1786— _TimePickerInputState._parseHour has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DartGenerator._makeDartStringLiteral (cognitive 16) packages/pigeon/lib/src/dart/dart_generator.dart:762— DartGenerator._makeDartStringLiteral has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DartGenerator.writeFlutterMethodMessageHandler (cognitive 16) packages/pigeon/lib/src/dart/dart_generator.dart:3312— DartGenerator.writeFlutterMethodMessageHandler has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 4 (6 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GObjectSourceGenerator.writeGeneralCodec (cognitive 16) packages/pigeon/lib/src/gobject/gobject_generator.dart:1370— GObjectSourceGenerator.writeGeneralCodec has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 5, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JavaGenerator.writeFlutterApi (cognitive 16) packages/pigeon/lib/src/java/java_generator.dart:845— JavaGenerator.writeFlutterApi has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ObjcSourceGenerator._writeObjcEquality (cognitive 16) packages/pigeon/lib/src/objc/objc_generator.dart:596— ObjcSourceGenerator._writeObjcEquality has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SwiftGenerator._writeProxyApiImports (cognitive 16) packages/pigeon/lib/src/swift/swift_generator.dart:3731— SwiftGenerator._writeProxyApiImports has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Runtime._findConstructor (cognitive 16) packages/rfw/lib/src/flutter/runtime.dart:386— Runtime._findConstructor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SvgParser._parseColor (cognitive 16) packages/vector_graphics_compiler/lib/src/svg/parser.dart:1370— SvgParser._parseColor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
BlinkTraceSummary.fromJson (cognitive 16) packages/web_benchmarks/lib/src/browser.dart:343— BlinkTraceSummary.fromJson has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 1 (2 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CIConfig._checkCIConfigEntries (cognitive 16) script/tool/lib/src/common/ci_config.dart:77— CIConfig._checkCIConfigEntries has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RepoInfoValidator.loadReadmeTableEntries (cognitive 16) script/tool/lib/src/validators/repo_info_validator.dart:39— RepoInfoValidator.loadReadmeTableEntries has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 4, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MarkersController.removeMarkers (cognitive 16) packages/google_maps_flutter/google_maps_flutter_android/android/src/main/java/io/flutter/plugins/googlemaps/MarkersController.java:166— MarkersController.removeMarkers has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FileSelectorApiImpl.toFileResponse (cognitive 16) packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileSelectorApiImpl.java:318— FileSelectorApiImpl.toFileResponse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 4, ternaries 1 (2 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ResolutionFeature.getBestAvailableCamcorderProfileForResolutionPreset (cognitive 16) packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/resolution/ResolutionFeature.java:220— ResolutionFeature.getBestAvailableCamcorderProfileForResolutionPreset has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CameraCaptureCallback.process (cognitive 16) packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/CameraCaptureCallback.java:79— CameraCaptureCallback.process has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
VideoPlayer.init (cognitive 16) packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/VideoPlayer.swift:157— VideoPlayer.init has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 1, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D22 · Internal API Consistency· Duplicate method signatures with different parameter names/types that are effectively aliases. `FlutterPluginRegistry` and `FlutterPluginRegistrar` are often used interchangeably or one is a wrapper of the other in Flutter's iOS API, but exposing both as distinct public methods on the same type creates redundancy and confusion about which entry point to use. · ×1
Duplicate method signatures with different parameter names/types that are effectively aliases. `FlutterPluginRegistry` and `FlutterPluginRegistrar` are often used interchangeably or one is a wrapper of the other in Flutter's iOS API, but exposing both as distinct public methods on the same type creates redundancy and confusion about which entry point to use. — Remove one of the overloads. Prefer `FlutterPluginRegistrar` as it is the more specific and modern type in the Flutter plugin architecture, or consolidate into a single method if the underlying implementation is identical. (signatures: FWFWebViewFlutterWKWebViewExternalAPI.webView(forIdentifier: Int64, withPluginRegistry: FlutterPluginRegistry): WKWebView? | FWFWebViewFlutterWKWebViewExternalAPI.webView(forIdentifier: Int64, withPluginRegistrar: FlutterPluginRegistrar): WKWebView?)
Change coupling clique: desktop_text_selection.dart, text_selection.dart, desktop_text_selection.dart packages/cupertino_ui/lib/src/desktop_text_selection.dart— 3 files — `packages/cupertino_ui/lib/src/desktop_text_selection.dart`, `packages/cupertino_ui/lib/src/text_selection.dart`, `packages/material_ui/lib/src/desktop_text_selection.dart` — all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique's coupling clears at once — you do not need to break each pair individually.
Change-coupling hub: InAppPurchasePlugin+StoreKit2.swift → StoreKit2Translators.swift, in_app_purchase_storekit_platform.dart, sk2_product_wrapper.dart, sk2_transaction_wrapper.dart packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/InAppPurchasePlugin+StoreKit2.swift— `packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/InAppPurchasePlugin+StoreKit2.swift` changes together with 4 other files — `packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/StoreKit2Translators.swift`, `packages/in_app_purchase/in_app_purchase_storekit/lib/src/in_app_purchase_storekit_platform.dart`, `packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_2_wrappers/sk2_product_wrapper.dart`, `packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_2_wrappers/sk2_transaction_wrapper.dart` — none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4.
D4 · Code Duplication· Near-duplicate member family (6 members, 26 shared lines) · ×1
Near-duplicate member family (6 members, 26 shared lines) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:578— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:578-610 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:473-503 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:478-508 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:478-508 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:478-508 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:544-576 — These 6 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Near-duplicate member family (6 members, 24 shared lines) · ×1
Near-duplicate member family (6 members, 24 shared lines) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:612— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_maps_flutter_android.dart:612-640 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:505-531 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:510-536 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:510-536 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:510-536 | packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart:578-606 — These 6 members are variants of one another: a block of 24 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Near-duplicate member family (5 members, 45 shared lines) · ×1
Near-duplicate member family (5 members, 45 shared lines) packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:84— packages/google_maps_flutter/google_maps_flutter_android/lib/src/google_map_inspector_android.dart:84-136 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_map_inspector_ios.dart:102-153 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_map_inspector_ios.dart:102-153 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_map_inspector_ios.dart:102-153 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_map_inspector_ios.dart:102-153 — These 5 members are variants of one another: a block of 45 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
D4 · Code Duplication· Near-duplicate member family (5 members, 23 shared lines) · ×1
Near-duplicate member family (5 members, 23 shared lines) packages/material_ui/lib/src/range_slider_parts.dart:1445— packages/material_ui/lib/src/range_slider_parts.dart:1445-1506 | packages/material_ui/lib/src/range_slider_parts.dart:1578-1644 | packages/material_ui/lib/src/slider_parts.dart:901-967 | packages/material_ui/lib/src/slider_parts.dart:1371-1432 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:431-496 — These 5 members are variants of one another: a block of 23 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
D4 · Code Duplication· Near-duplicate member family (5 members, 20 shared lines) · ×1
Near-duplicate member family (5 members, 20 shared lines) packages/material_ui/lib/src/range_slider_parts.dart:1404— packages/material_ui/lib/src/range_slider_parts.dart:1404-1438 | packages/material_ui/lib/src/range_slider_parts.dart:1528-1562 | packages/material_ui/lib/src/slider_parts.dart:851-885 | packages/material_ui/lib/src/slider_parts.dart:1330-1364 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:389-423 — These 5 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Near-duplicate member pair (134 shared lines) packages/cupertino_ui/lib/src/text_field.dart:977— packages/cupertino_ui/lib/src/text_field.dart:977-1131 | packages/material_ui/lib/src/text_field.dart:1009-1181 — These two members are variants of one another: 134 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (47 shared lines) packages/material_ui/lib/src/checkbox.dart:477— packages/material_ui/lib/src/checkbox.dart:477-652 | packages/material_ui/lib/src/radio.dart:638-769 — These two members are variants of one another: 47 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication· Edited copy of a member (15 corresponding lines) · ×1
Edited copy of a member (15 corresponding lines) packages/material_ui/lib/src/checkbox.dart:755— packages/material_ui/lib/src/checkbox.dart:755-776 | packages/material_ui/lib/src/chip.dart:2160-2207 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (39 corresponding lines) · ×1
Edited copy of a member (39 corresponding lines) packages/go_router_builder/lib/src/route_config.dart:459— packages/go_router_builder/lib/src/route_config.dart:459-497 | packages/go_router_builder/lib/src/route_config.dart:543-584 — These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (43–45 lines × 2) packages/cupertino_ui/lib/src/text_field.dart:1004— packages/cupertino_ui/lib/src/text_field.dart:1004-1046 | packages/material_ui/lib/src/text_field.dart:1029-1073 — before extracting anything, compare `packages/cupertino_ui/lib/src/text_field.dart` and `packages/material_ui/lib/src/text_field.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (43 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:718— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:718-760 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:718-760 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:718-760 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (40 lines × 2) packages/material_ui/lib/src/range_slider_parts.dart:1595— packages/material_ui/lib/src/range_slider_parts.dart:1595-1634 | packages/material_ui/lib/src/slider_parts.dart:918-957 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (31–33 lines × 2) packages/material_ui/lib/src/range_slider_parts.dart:603— packages/material_ui/lib/src/range_slider_parts.dart:603-635 | packages/material_ui/lib/src/range_slider_parts.dart:1019-1049 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (28–31 lines × 2) packages/go_router_builder/lib/src/route_config.dart:459— packages/go_router_builder/lib/src/route_config.dart:459-486 | packages/go_router_builder/lib/src/route_config.dart:543-573 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (25–27 lines × 2) packages/cupertino_ui/lib/src/text_field.dart:1054— packages/cupertino_ui/lib/src/text_field.dart:1054-1078 | packages/material_ui/lib/src/text_field.dart:1109-1135 — before extracting anything, compare `packages/cupertino_ui/lib/src/text_field.dart` and `packages/material_ui/lib/src/text_field.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (24–26 lines × 4) packages/material_ui/lib/src/range_slider_parts.dart:1448— packages/material_ui/lib/src/range_slider_parts.dart:1448-1473 | packages/material_ui/lib/src/range_slider_parts.dart:1581-1604 | packages/material_ui/lib/src/slider_parts.dart:904-927 | packages/material_ui/lib/src/slider_parts.dart:1374-1399 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (22–23 lines × 2) packages/material_ui/lib/src/dialog.dart:960— packages/material_ui/lib/src/dialog.dart:960-982 | packages/material_ui/lib/src/dialog.dart:1398-1419 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (22 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:482— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:482-503 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:487-508 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:487-508 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:487-508 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 3) packages/cupertino_ui/lib/src/date_picker.dart:1321— packages/cupertino_ui/lib/src/date_picker.dart:1321-1342 | packages/cupertino_ui/lib/src/date_picker.dart:1764-1785 | packages/cupertino_ui/lib/src/date_picker.dart:2107-2128 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (18–21 lines × 3) packages/pigeon/lib/src/gobject/gobject_generator.dart:1062— packages/pigeon/lib/src/gobject/gobject_generator.dart:1062-1079 | packages/pigeon/lib/src/gobject/gobject_generator.dart:1120-1137 | packages/pigeon/lib/src/gobject/gobject_generator.dart:1141-1161 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (20–21 lines × 2) packages/material_ui/lib/src/range_slider_parts.dart:1214— packages/material_ui/lib/src/range_slider_parts.dart:1214-1234 | packages/material_ui/lib/src/slider_parts.dart:1013-1032 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (19–21 lines × 2) packages/material_ui/lib/src/tooltip.dart:362— packages/material_ui/lib/src/tooltip.dart:362-382 | packages/material_ui/lib/src/tooltip_theme.dart:273-291 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (17–20 lines × 3) packages/cupertino_ui/lib/src/desktop_text_selection.dart:193— packages/cupertino_ui/lib/src/desktop_text_selection.dart:193-209 | packages/cupertino_ui/lib/src/text_selection.dart:299-315 | packages/material_ui/lib/src/desktop_text_selection.dart:201-220 — before extracting anything, compare `packages/cupertino_ui/lib/src/desktop_text_selection.dart` and `packages/cupertino_ui/lib/src/text_selection.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (3–20 lines × 4) packages/material_ui/lib/src/date_picker_theme.dart:816— packages/material_ui/lib/src/date_picker_theme.dart:816-819 | packages/material_ui/lib/src/dialog_theme.dart:291-310 | packages/material_ui/lib/src/dialog_theme.dart:510-529 | packages/material_ui/lib/src/drawer_theme.dart:166-168 — there are 4 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (16–19 lines × 2) packages/pigeon/lib/src/gobject/gobject_generator.dart:1314— packages/pigeon/lib/src/gobject/gobject_generator.dart:1314-1332 | packages/pigeon/lib/src/gobject/gobject_generator.dart:1336-1351 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14–16 lines × 2) packages/material_ui/lib/src/range_slider_parts.dart:1104— packages/material_ui/lib/src/range_slider_parts.dart:1104-1119 | packages/material_ui/lib/src/slider_parts.dart:1156-1169 — before extracting anything, compare `packages/material_ui/lib/src/range_slider_parts.dart` and `packages/material_ui/lib/src/slider_parts.dart` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 315 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12–16 lines × 2) packages/pigeon/lib/src/swift/swift_generator.dart:1867— packages/pigeon/lib/src/swift/swift_generator.dart:1867-1878 | packages/pigeon/lib/src/swift/swift_generator.dart:1898-1913 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 8) packages/material_ui/lib/src/slider_parts.dart:720— packages/material_ui/lib/src/slider_parts.dart:720-734 | packages/material_ui/lib/src/slider_parts.dart:801-815 | packages/material_ui/lib/src/slider_parts.dart:998-1012 | packages/material_ui/lib/src/slider_parts.dart:1283-1297 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:156-170 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:205-219 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:259-273 | packages/material_ui/lib/src/slider_value_indicator_shape.dart:528-542 — before extracting anything, compare `packages/material_ui/lib/src/slider_parts.dart` and `packages/material_ui/lib/src/slider_value_indicator_shape.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13–15 lines × 5) packages/pigeon/lib/src/swift/swift_generator.dart:3110— packages/pigeon/lib/src/swift/swift_generator.dart:3110-3124 | packages/pigeon/lib/src/swift/swift_generator.dart:3156-3168 | packages/pigeon/lib/src/swift/swift_generator.dart:3197-3209 | packages/pigeon/lib/src/swift/swift_generator.dart:3241-3255 | packages/pigeon/lib/src/swift/swift_generator.dart:3612-3626 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11–12 lines × 2) packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:105— packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:105-115 | packages/image_picker/image_picker_linux/lib/image_picker_linux.dart:135-146 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–11 lines × 2) packages/pigeon/lib/src/dart/dart_generator.dart:662— packages/pigeon/lib/src/dart/dart_generator.dart:662-672 | packages/pigeon/lib/src/swift/swift_generator.dart:298-307 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9–11 lines × 2) packages/vector_graphics_compiler/lib/src/svg/parser.dart:112— packages/vector_graphics_compiler/lib/src/svg/parser.dart:112-120 | packages/vector_graphics_compiler/lib/src/svg/parser.dart:135-145 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7–8 lines × 2) packages/material_ui/lib/src/range_slider_parts.dart:640— packages/material_ui/lib/src/range_slider_parts.dart:640-646 | packages/material_ui/lib/src/range_slider_parts.dart:1066-1073 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 10) packages/camera/camera_web/lib/src/camera_web.dart:320— packages/camera/camera_web/lib/src/camera_web.dart:320-326 | packages/camera/camera_web/lib/src/camera_web.dart:428-434 | packages/camera/camera_web/lib/src/camera_web.dart:470-476 | packages/camera/camera_web/lib/src/camera_web.dart:484-490 | packages/camera/camera_web/lib/src/camera_web.dart:496-502 | packages/camera/camera_web/lib/src/camera_web.dart:508-514 | packages/camera/camera_web/lib/src/camera_web.dart:520-526 | packages/camera/camera_web/lib/src/camera_web.dart:572-578 | packages/camera/camera_web/lib/src/camera_web.dart:584-590 | packages/camera/camera_web/lib/src/camera_web.dart:619-625 — all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6–7 lines × 2) packages/pigeon/lib/src/cpp/cpp_generator.dart:238— packages/pigeon/lib/src/cpp/cpp_generator.dart:238-243 | packages/pigeon/lib/src/java/java_generator.dart:244-250 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (5–7 lines × 2) packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:206— packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart:206-210 | packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart:210-216 — before extracting anything, compare `packages/shared_preferences/shared_preferences_linux/lib/shared_preferences_linux.dart` and `packages/shared_preferences/shared_preferences_windows/lib/shared_preferences_windows.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (5–6 lines × 2) packages/material_ui/lib/src/navigation_bar_theme.dart:222— packages/material_ui/lib/src/navigation_bar_theme.dart:222-227 | packages/material_ui/lib/src/navigation_drawer_theme.dart:202-206 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (5 lines × 8) packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:482— packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:482-486 | packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart:513-517 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:487-491 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart:518-522 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:487-491 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/lib/src/google_maps_flutter_ios.dart:518-522 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:487-491 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/lib/src/google_maps_flutter_ios.dart:518-522 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/lib/src/google_maps_flutter_ios.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/lib/src/google_maps_flutter_ios.dart` as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 531 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (3–5 lines × 5) packages/material_ui/lib/src/date_picker_theme.dart:811— packages/material_ui/lib/src/date_picker_theme.dart:811-815 | packages/material_ui/lib/src/dialog_theme.dart:285-289 | packages/material_ui/lib/src/dialog_theme.dart:504-508 | packages/material_ui/lib/src/navigation_bar_theme.dart:219-221 | packages/material_ui/lib/src/navigation_drawer_theme.dart:199-201 — there are 5 copies across 4 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (3–5 lines × 4) packages/material_ui/lib/src/checkbox.dart:765— packages/material_ui/lib/src/checkbox.dart:765-767 | packages/material_ui/lib/src/checkbox.dart:772-776 | packages/material_ui/lib/src/chip.dart:2196-2198 | packages/material_ui/lib/src/chip.dart:2203-2207 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (38 lines × 2) packages/in_app_purchase/in_app_purchase/lib/in_app_purchase.dart:118— packages/in_app_purchase/in_app_purchase/lib/in_app_purchase.dart:118-155 | packages/in_app_purchase/in_app_purchase_platform_interface/lib/src/in_app_purchase_platform.dart:109-146 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9–12 lines × 2) packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java:145— packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java:145-156 | packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java:84-92 — before extracting anything, compare `packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java` and `packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `packages/file_selector/file_selector_android/android/src/main/java/dev/flutter/packages/file_selector_android/FileUtils.java:145` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (104 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:142— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:142-245 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:142-245 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:142-245 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (65 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:454— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:454-518 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:454-518 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:454-518 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (64 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:112— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift:112-175 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift:112-175 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GroundOverlayController.swift:112-175 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GroundOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GroundOverlayController.swift` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (39 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:72— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift:72-110 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift:72-110 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift:72-110 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (35 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:165— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:165-199 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ImageUtils.swift:165-199 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/ImageUtils.swift:165-199 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ImageUtils.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (32 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:203— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift:203-234 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ImageUtils.swift:203-234 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/ImageUtils.swift:203-234 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ImageUtils.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/ImageUtils.swift` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (28 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:108— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift:108-135 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift:108-135 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/TileOverlayController.swift:108-135 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (27 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:266— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift:266-292 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift:266-292 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/GoogleMapController.swift:266-292 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/GoogleMapController.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/GoogleMapController.swift` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 555 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10–13 lines × 2) packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios/Sources/google_sign_in_ios/GoogleSignInWrappers.swift:163— packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios/Sources/google_sign_in_ios/GoogleSignInWrappers.swift:163-175 | packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios/Sources/google_sign_in_ios/GoogleSignInWrappers.swift:180-189 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios/Sources/google_sign_in_ios/GoogleSignInWrappers.swift:163` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (33 lines × 3) packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerUserData.swift:16— packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerUserData.swift:16-48 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerUserData.swift:16-48 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerUserData.swift:16-48 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerUserData.swift` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerUserData.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerUserData.swift:16` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication· Near-duplicate member family (15 members, 35 shared lines) · ×1
Near-duplicate member family (15 members, 35 shared lines) packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:134— packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:134-205 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:157-248 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:187-279 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart:134-205 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:157-248 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:187-279 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_circle.dart:134-205 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:157-248 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:187-279 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_circle.dart:134-205 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:157-248 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:187-279 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_circle.dart:134-205 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:157-248 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:187-279 — These 15 members are variants of one another: a block of 35 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 15 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times.
D4 · Code Duplication· Near-duplicate member family (12 members, 85 shared lines) · ×1
Near-duplicate member family (12 members, 85 shared lines) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:257— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:257-365 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:246-355 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:257-365 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:254-363 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:274-400 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:274-383 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:274-400 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:274-383 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:274-400 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:274-383 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:274-400 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:274-383 — These 12 members are variants of one another: a block of 85 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
D4 · Code Duplication· Near-duplicate member family (12 members, 47 shared lines) · ×1
Near-duplicate member family (12 members, 47 shared lines) packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:133— packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:133-204 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:156-247 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:134-205 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:157-248 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart:134-205 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:157-248 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_circle.dart:134-205 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:157-248 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_circle.dart:134-205 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:157-248 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_circle.dart:134-205 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:157-248 — These 12 members are variants of one another: a block of 47 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
D4 · Code Duplication· Near-duplicate member family (6 members, 87 shared lines) · ×1
Near-duplicate member family (6 members, 87 shared lines) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:186— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:186-278 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:187-279 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:187-279 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:187-279 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:187-279 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:187-279 — These 6 members are variants of one another: a block of 87 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Near-duplicate member family (6 members, 71 shared lines) · ×1
Near-duplicate member family (6 members, 71 shared lines) packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:49— packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:49-120 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart:50-121 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart:50-121 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/marker_icons.dart:50-121 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/marker_icons.dart:50-121 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/marker_icons.dart:50-121 — These 6 members are variants of one another: a block of 71 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Near-duplicate member family (6 members, 58 shared lines) · ×1
Near-duplicate member family (6 members, 58 shared lines) packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart:28— packages/google_maps_flutter/google_maps_flutter/example/lib/scrolling_map.dart:28-96 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/scrolling_map.dart:29-97 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/scrolling_map.dart:29-97 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/scrolling_map.dart:29-97 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/scrolling_map.dart:29-97 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/scrolling_map.dart:29-97 — These 6 members are variants of one another: a block of 58 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Near-duplicate member family (6 members, 27 shared lines) · ×1
Near-duplicate member family (6 members, 27 shared lines) packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:69— packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:69-96 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart:70-97 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/tile_overlay.dart:70-97 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/tile_overlay.dart:70-97 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/tile_overlay.dart:70-97 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/tile_overlay.dart:70-97 — These 6 members are variants of one another: a block of 27 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Near-duplicate member family (6 members, 10 shared lines) · ×1
Near-duplicate member family (6 members, 10 shared lines) packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:112— packages/google_maps_flutter/google_maps_flutter/example/lib/tile_overlay.dart:112-127 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/tile_overlay.dart:113-128 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/tile_overlay.dart:113-128 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/tile_overlay.dart:113-128 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/tile_overlay.dart:113-128 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/tile_overlay.dart:113-128 — These 6 members are variants of one another: a block of 10 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 59 shared lines) · ×1
Near-duplicate member family (4 members, 59 shared lines) packages/camera/camera/example/lib/main.dart:335— packages/camera/camera/example/lib/main.dart:335-407 | packages/camera/camera_android/example/lib/main.dart:339-411 | packages/camera/camera_android_camerax/example/lib/main.dart:341-414 | packages/camera/camera_avfoundation/example/lib/main.dart:339-411 — These 4 members are variants of one another: a block of 59 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 47 shared lines) · ×1
Near-duplicate member family (4 members, 47 shared lines) packages/camera/camera/example/lib/main.dart:409— packages/camera/camera/example/lib/main.dart:409-457 | packages/camera/camera_android/example/lib/main.dart:413-461 | packages/camera/camera_android_camerax/example/lib/main.dart:416-464 | packages/camera/camera_avfoundation/example/lib/main.dart:413-461 — These 4 members are variants of one another: a block of 47 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication· Near-duplicate member family (3 members, 20 shared lines) · ×1
Near-duplicate member family (3 members, 20 shared lines) packages/go_router/example/lib/others/custom_stateful_shell_route.dart:409— packages/go_router/example/lib/others/custom_stateful_shell_route.dart:409-446 | packages/go_router/example/lib/stateful_shell_route.dart:279-318 | packages/go_router_builder/example/lib/stateful_shell_route_example.dart:232-265 — These 3 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times.
Near-duplicate member pair (53 shared lines) packages/webview_flutter/webview_flutter_android/example/lib/main.dart:174— packages/webview_flutter/webview_flutter_android/example/lib/main.dart:174-239 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:155-233 — These two members are variants of one another: 53 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication· Members sharing a duplicated core (24 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (24 members, 50+ identical tokens) packages/file_selector/file_selector/example/lib/get_directory_page.dart:31— packages/file_selector/file_selector/example/lib/get_directory_page.dart:31-51 | packages/file_selector/file_selector/example/lib/get_multiple_directories_page.dart:35-55 | packages/file_selector/file_selector/example/lib/open_image_page.dart:40-60 | packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart:44-64 | packages/file_selector/file_selector/example/lib/open_text_page.dart:46-66 | packages/file_selector/file_selector_ios/example/lib/open_any_page.dart:29-49 | packages/file_selector/file_selector_ios/example/lib/open_image_page.dart:41-61 | packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart:43-63 | packages/file_selector/file_selector_ios/example/lib/open_text_page.dart:38-58 | packages/file_selector/file_selector_linux/example/lib/get_directory_page.dart:31-51 | packages/file_selector/file_selector_linux/example/lib/get_multiple_directories_page.dart:32-52 | packages/file_selector/file_selector_linux/example/lib/open_image_page.dart:37-57 | packages/file_selector/file_selector_linux/example/lib/open_multiple_images_page.dart:35-55 | packages/file_selector/file_selector_linux/example/lib/open_text_page.dart:34-54 | packages/file_selector/file_selector_macos/example/lib/get_directory_page.dart:31-51 | packages/file_selector/file_selector_macos/example/lib/get_multiple_directories_page.dart:32-52 | packages/file_selector/file_selector_macos/example/lib/open_image_page.dart:37-57 | packages/file_selector/file_selector_macos/example/lib/open_multiple_images_page.dart:35-55 | packages/file_selector/file_selector_macos/example/lib/open_text_page.dart:34-54 | packages/file_selector/file_selector_windows/example/lib/get_directory_page.dart:31-51 | packages/file_selector/file_selector_windows/example/lib/get_multiple_directories_page.dart:32-52 | packages/file_selector/file_selector_windows/example/lib/open_image_page.dart:37-57 | packages/file_selector/file_selector_windows/example/lib/open_multiple_images_page.dart:35-55 | packages/file_selector/file_selector_windows/example/lib/open_text_page.dart:34-54 — These 24 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 24 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 24 times.
D4 · Code Duplication· Members sharing a duplicated core (7 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (7 members, 50+ identical tokens) packages/material_ui/example/lib/app/app.0.dart:37— packages/material_ui/example/lib/app/app.0.dart:37-95 | packages/material_ui/example/lib/bottom_sheet/show_bottom_sheet.0.dart:48-110 | packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.2.dart:49-111 | packages/material_ui/example/lib/expansion_tile/expansion_tile.2.dart:38-89 | packages/material_ui/example/lib/popup_menu/popup_menu.2.dart:45-136 | packages/material_ui/example/lib/scaffold/scaffold_messenger_state.show_snack_bar.2.dart:43-98 | packages/material_ui/example/lib/scaffold/scaffold_state.show_bottom_sheet.1.dart:48-112 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
Duplicated block (121 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart:59— packages/google_maps_flutter/google_maps_flutter/example/lib/animate_camera.dart:59-179 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/animate_camera.dart:59-179 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/animate_camera.dart:59-179 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/animate_camera.dart:59-179 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/animate_camera.dart:59-179 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/animate_camera.dart:59-179 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/animate_camera.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/animate_camera.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (102 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/move_camera.dart:46— packages/google_maps_flutter/google_maps_flutter/example/lib/move_camera.dart:46-147 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/move_camera.dart:47-148 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/move_camera.dart:47-148 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/move_camera.dart:47-148 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/move_camera.dart:47-148 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/move_camera.dart:47-148 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times.
Duplicated block (73 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_marker_icons.dart:55— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_marker_icons.dart:55-127 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_marker_icons.dart:56-128 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_marker_icons.dart:56-128 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_marker_icons.dart:56-128 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_marker_icons.dart:56-128 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_marker_icons.dart:56-128 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times.
Duplicated block (62 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/collision_behavior.dart:82— packages/google_maps_flutter/google_maps_flutter/example/lib/collision_behavior.dart:82-143 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/collision_behavior.dart:83-144 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/collision_behavior.dart:83-144 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/collision_behavior.dart:83-144 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/collision_behavior.dart:83-144 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/collision_behavior.dart:83-144 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times.
Duplicated block (61–62 lines × 5) packages/image_picker/image_picker_android/example/lib/main.dart:370— packages/image_picker/image_picker_android/example/lib/main.dart:370-431 | packages/image_picker/image_picker_ios/example/lib/main.dart:289-349 | packages/image_picker/image_picker_linux/example/lib/main.dart:291-351 | packages/image_picker/image_picker_macos/example/lib/main.dart:291-351 | packages/image_picker/image_picker_windows/example/lib/main.dart:291-351 — before extracting anything, compare `packages/image_picker/image_picker_android/example/lib/main.dart` and `packages/image_picker/image_picker_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (58 lines × 12) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:277— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:277-334 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:263-320 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:277-334 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:271-328 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:312-369 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:291-348 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:312-369 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:291-348 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:312-369 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:291-348 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:312-369 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:291-348 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (58 lines × 2) packages/camera/camera_android/example/lib/main.dart:602— packages/camera/camera_android/example/lib/main.dart:602-659 | packages/camera/camera_avfoundation/example/lib/main.dart:599-656 — before extracting anything, compare `packages/camera/camera_android/example/lib/main.dart` and `packages/camera/camera_avfoundation/example/lib/main.dart` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 663 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (57 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:64— packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:64-120 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart:65-121 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart:65-121 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/marker_icons.dart:65-121 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/marker_icons.dart:65-121 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/marker_icons.dart:65-121 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (56 lines × 3) packages/image_picker/image_picker_linux/example/lib/main.dart:91— packages/image_picker/image_picker_linux/example/lib/main.dart:91-146 | packages/image_picker/image_picker_macos/example/lib/main.dart:91-146 | packages/image_picker/image_picker_windows/example/lib/main.dart:91-146 — before extracting anything, compare `packages/image_picker/image_picker_linux/example/lib/main.dart` and `packages/image_picker/image_picker_macos/example/lib/main.dart` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 456 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (54 lines × 2) packages/camera/camera/example/lib/main.dart:598— packages/camera/camera/example/lib/main.dart:598-651 | packages/camera/camera_android_camerax/example/lib/main.dart:596-649 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android_camerax/example/lib/main.dart` as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 652 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (53 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:41— packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart:41-93 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart:41-93 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/example_google_map.dart:41-93 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/example_google_map.dart:41-93 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/example_google_map.dart:41-93 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/example_google_map.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/example_google_map.dart` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (52 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:227— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:227-278 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:228-279 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:228-279 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:228-279 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:228-279 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:228-279 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 183 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (51 lines × 2) packages/webview_flutter/webview_flutter/example/lib/main.dart:235— packages/webview_flutter/webview_flutter/example/lib/main.dart:235-285 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:265-315 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 238 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (48 lines × 12) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:242— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:242-289 | packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:219-266 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart:244-291 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart:220-267 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:242-289 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:219-266 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart:242-289 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart:219-266 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_markers_clustering.dart:242-289 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/clustering.dart:219-266 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart:242-289 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart:219-266 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (48 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart:74— packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart:74-121 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/padding.dart:76-123 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/padding.dart:76-123 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/padding.dart:76-123 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/padding.dart:76-123 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/padding.dart:76-123 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/padding.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (44 lines × 2) packages/cupertino_ui/example/lib/magnifier/text_magnifier.0.dart:69— packages/cupertino_ui/example/lib/magnifier/text_magnifier.0.dart:69-112 | packages/material_ui/example/lib/text_field/text_field_magnifier.0.dart:55-98 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (43 lines × 2) packages/image_picker/image_picker_android/example/lib/main.dart:109— packages/image_picker/image_picker_android/example/lib/main.dart:109-151 | packages/image_picker/image_picker_ios/example/lib/main.dart:91-133 — before extracting anything, compare `packages/image_picker/image_picker_android/example/lib/main.dart` and `packages/image_picker/image_picker_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (41 lines × 5) packages/image_picker/image_picker_android/example/lib/main.dart:432— packages/image_picker/image_picker_android/example/lib/main.dart:432-472 | packages/image_picker/image_picker_ios/example/lib/main.dart:350-390 | packages/image_picker/image_picker_linux/example/lib/main.dart:353-393 | packages/image_picker/image_picker_macos/example/lib/main.dart:353-393 | packages/image_picker/image_picker_windows/example/lib/main.dart:353-393 — before extracting anything, compare `packages/image_picker/image_picker_android/example/lib/main.dart` and `packages/image_picker/image_picker_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (40 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:194— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:194-233 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:195-234 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:195-234 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:195-234 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:195-234 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:195-234 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (40 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:257— packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart:257-296 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:240-279 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:240-279 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:240-279 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:240-279 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/ground_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 161 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (39 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_coordinates.dart:43— packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_coordinates.dart:43-81 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_coordinates.dart:43-81 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_coordinates.dart:43-81 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_coordinates.dart:43-81 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_coordinates.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_coordinates.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (38–39 lines × 3) packages/webview_flutter/webview_flutter/example/lib/main.dart:353— packages/webview_flutter/webview_flutter/example/lib/main.dart:353-391 | packages/webview_flutter/webview_flutter_android/example/lib/main.dart:396-433 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/main.dart:399-436 — before extracting anything, compare `packages/webview_flutter/webview_flutter/example/lib/main.dart` and `packages/webview_flutter/webview_flutter_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (38 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:274— packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:274-311 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:274-311 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:274-311 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:274-311 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 329 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (37 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:318— packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart:318-354 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart:259-295 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/map_ui.dart:246-282 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/map_ui.dart:246-282 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/map_ui.dart:246-282 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart:246-282 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/map_ui.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/map_ui.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (37 lines × 3) packages/in_app_purchase/in_app_purchase/example/lib/main.dart:310— packages/in_app_purchase/in_app_purchase/example/lib/main.dart:310-346 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:492-528 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:362-398 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase/example/lib/main.dart` and `packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (36 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:92— packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:92-127 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:92-127 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:92-127 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:92-127 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 306 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (35 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart:123— packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart:123-157 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/padding.dart:125-159 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/padding.dart:125-159 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/padding.dart:125-159 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/padding.dart:125-159 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/padding.dart:125-159 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/padding.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/padding.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (35 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:88— packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart:88-122 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart:88-122 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/ground_overlay.dart:88-122 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart:88-122 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/ground_overlay.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/ground_overlay.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (35 lines × 2) packages/camera/camera_android/example/lib/camera_controller.dart:216— packages/camera/camera_android/example/lib/camera_controller.dart:216-250 | packages/camera/camera_avfoundation/example/lib/camera_controller.dart:231-265 — before extracting anything, compare `packages/camera/camera_android/example/lib/camera_controller.dart` and `packages/camera/camera_avfoundation/example/lib/camera_controller.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (28–32 lines × 4) packages/camera/camera/example/lib/main.dart:629— packages/camera/camera/example/lib/main.dart:629-656 | packages/camera/camera_android/example/lib/main.dart:633-664 | packages/camera/camera_android_camerax/example/lib/main.dart:627-654 | packages/camera/camera_avfoundation/example/lib/main.dart:630-661 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (32 lines × 4) packages/file_selector/file_selector/example/lib/save_text_page.dart:46— packages/file_selector/file_selector/example/lib/save_text_page.dart:46-77 | packages/file_selector/file_selector_linux/example/lib/save_text_page.dart:34-65 | packages/file_selector/file_selector_macos/example/lib/save_text_page.dart:34-65 | packages/file_selector/file_selector_windows/example/lib/save_text_page.dart:49-80 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times.
Duplicated block (31 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:224— packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:224-254 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart:225-255 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart:225-255 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/marker_icons.dart:225-255 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/marker_icons.dart:225-255 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/marker_icons.dart:225-255 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (30 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:163— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:163-192 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart:153-182 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:152-181 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart:152-181 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_markers_clustering.dart:152-181 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart:152-181 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (29–30 lines × 2) packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.0.dart:40— packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.0.dart:40-68 | packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.2.dart:46-75 — before extracting anything, compare `packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.0.dart` and `packages/cupertino_ui/example/lib/nav_bar/cupertino_sliver_nav_bar.2.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (28 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:72— packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:72-99 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:73-100 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart:73-100 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_circle.dart:73-100 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_circle.dart:73-100 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_circle.dart:73-100 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (28 lines × 4) packages/camera/camera/example/lib/main.dart:409— packages/camera/camera/example/lib/main.dart:409-436 | packages/camera/camera_android/example/lib/main.dart:413-440 | packages/camera/camera_android_camerax/example/lib/main.dart:416-443 | packages/camera/camera_avfoundation/example/lib/main.dart:413-440 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (27–28 lines × 3) packages/in_app_purchase/in_app_purchase/example/lib/main.dart:97— packages/in_app_purchase/in_app_purchase/example/lib/main.dart:97-124 | packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart:112-138 | packages/in_app_purchase/in_app_purchase_storekit/example/lib/main.dart:94-120 — before extracting anything, compare `packages/in_app_purchase/in_app_purchase/example/lib/main.dart` and `packages/in_app_purchase/in_app_purchase_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 224 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (24–28 lines × 2) packages/quick_actions/quick_actions/example/lib/main.dart:42— packages/quick_actions/quick_actions/example/lib/main.dart:42-69 | packages/quick_actions/quick_actions_ios/example/lib/main.dart:42-65 — before extracting anything, compare `packages/quick_actions/quick_actions/example/lib/main.dart` and `packages/quick_actions/quick_actions_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (27 lines × 12) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:339— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:339-365 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:329-355 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:339-365 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:337-363 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:374-400 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:357-383 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:374-400 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:357-383 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:374-400 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:357-383 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:374-400 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:357-383 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (27 lines × 4) packages/cross_file/cross_file_android/example/lib/main.dart:28— packages/cross_file/cross_file_android/example/lib/main.dart:28-54 | packages/cross_file/cross_file_darwin/example/lib/main.dart:28-54 | packages/cross_file/cross_file_io/example/lib/main.dart:28-54 | packages/cross_file/cross_file_web/example/lib/main.dart:23-49 — before extracting anything, compare `packages/cross_file/cross_file_android/example/lib/main.dart` and `packages/cross_file/cross_file_darwin/example/lib/main.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (26 lines × 8) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:79— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:79-104 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:75-100 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:79-104 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:83-108 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:96-121 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:96-121 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:96-121 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:96-121 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (26 lines × 5) packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart:75— packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart:75-100 | packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart:74-99 | packages/file_selector/file_selector_linux/example/lib/open_multiple_images_page.dart:66-91 | packages/file_selector/file_selector_macos/example/lib/open_multiple_images_page.dart:66-91 | packages/file_selector/file_selector_windows/example/lib/open_multiple_images_page.dart:66-91 — before extracting anything, compare `packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart` and `packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (25–26 lines × 2) packages/material_ui/example/lib/progress_indicator/circular_progress_indicator.1.dart:79— packages/material_ui/example/lib/progress_indicator/circular_progress_indicator.1.dart:79-104 | packages/material_ui/example/lib/progress_indicator/linear_progress_indicator.1.dart:78-102 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (25 lines × 12) packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:180— packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:180-204 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:223-247 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:181-205 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:224-248 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart:181-205 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:224-248 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_circle.dart:181-205 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:224-248 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_circle.dart:181-205 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:224-248 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_circle.dart:181-205 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:224-248 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (25 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:189— packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:189-213 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:189-213 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:189-213 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:189-213 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:189-213 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 221 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (22–25 lines × 3) packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:602— packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart:602-626 | packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart:317-341 | packages/webview_flutter/webview_flutter_wkwebview/example/lib/legacy/web_view.dart:551-572 — before extracting anything, compare `packages/webview_flutter/webview_flutter_android/example/lib/legacy/web_view.dart` and `packages/webview_flutter/webview_flutter_web/example/lib/legacy/web_view.dart` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 10) packages/google_maps_flutter/google_maps_flutter_android/example/lib/animate_camera.dart:48— packages/google_maps_flutter/google_maps_flutter_android/example/lib/animate_camera.dart:48-70 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/move_camera.dart:36-58 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/animate_camera.dart:48-70 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/move_camera.dart:36-58 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/animate_camera.dart:48-70 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/move_camera.dart:36-58 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/animate_camera.dart:48-70 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/move_camera.dart:36-58 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/animate_camera.dart:48-70 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/move_camera.dart:36-58 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/animate_camera.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/animate_camera.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 5) packages/google_maps_flutter/google_maps_flutter_android/example/lib/scrolling_map.dart:36— packages/google_maps_flutter/google_maps_flutter_android/example/lib/scrolling_map.dart:36-58 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/scrolling_map.dart:36-58 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/scrolling_map.dart:36-58 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/scrolling_map.dart:36-58 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/scrolling_map.dart:36-58 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/scrolling_map.dart` and `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/scrolling_map.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 4) packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:141— packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:141-163 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart:141-163 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/clustering.dart:141-163 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart:141-163 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart` and `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 172 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 18) packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:150— packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart:150-171 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:173-194 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:206-227 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:151-172 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:174-195 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:207-228 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart:151-172 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:174-195 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:207-228 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_circle.dart:151-172 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:174-195 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:207-228 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_circle.dart:151-172 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:174-195 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:207-228 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_circle.dart:151-172 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:174-195 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:207-228 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_circle.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 6) packages/file_selector/file_selector/example/lib/home_page.dart:20— packages/file_selector/file_selector/example/lib/home_page.dart:20-41 | packages/file_selector/file_selector_android/example/lib/home_page.dart:17-38 | packages/file_selector/file_selector_ios/example/lib/home_page.dart:17-38 | packages/file_selector/file_selector_linux/example/lib/home_page.dart:17-38 | packages/file_selector/file_selector_macos/example/lib/home_page.dart:17-38 | packages/file_selector/file_selector_windows/example/lib/home_page.dart:17-38 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times.
Duplicated block (22 lines × 5) packages/image_picker/image_picker_android/example/lib/main.dart:190— packages/image_picker/image_picker_android/example/lib/main.dart:190-211 | packages/image_picker/image_picker_ios/example/lib/main.dart:172-193 | packages/image_picker/image_picker_linux/example/lib/main.dart:165-186 | packages/image_picker/image_picker_macos/example/lib/main.dart:165-186 | packages/image_picker/image_picker_windows/example/lib/main.dart:165-186 — before extracting anything, compare `packages/image_picker/image_picker_android/example/lib/main.dart` and `packages/image_picker/image_picker_ios/example/lib/main.dart` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 433 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (20–22 lines × 3) packages/go_router/example/lib/others/custom_stateful_shell_route.dart:409— packages/go_router/example/lib/others/custom_stateful_shell_route.dart:409-428 | packages/go_router/example/lib/stateful_shell_route.dart:279-298 | packages/go_router_builder/example/lib/stateful_shell_route_example.dart:232-253 — before extracting anything, compare `packages/go_router/example/lib/others/custom_stateful_shell_route.dart` and `packages/go_router/example/lib/stateful_shell_route.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (21 lines × 12) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:128— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:128-148 | packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:115-135 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart:117-137 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart:112-132 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:116-136 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:106-126 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart:116-136 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart:106-126 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_markers_clustering.dart:116-136 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/clustering.dart:106-126 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart:116-136 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart:106-126 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (19–20 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/snapshot.dart:48— packages/google_maps_flutter/google_maps_flutter/example/lib/snapshot.dart:48-66 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/snapshot.dart:51-70 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/snapshot.dart:51-70 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/snapshot.dart:51-70 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/snapshot.dart:51-70 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/snapshot.dart:51-70 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times.
Duplicated block (19 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:102— packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:102-120 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:110-128 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:129-147 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:129-147 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:129-147 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:129-147 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17–18 lines × 10) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:400— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:400-416 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:420-436 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:283-300 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:438-454 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:283-300 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:438-454 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:283-300 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:438-454 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:283-300 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:438-454 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 293 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 6) packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:137— packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart:137-154 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart:138-155 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/marker_icons.dart:138-155 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/marker_icons.dart:138-155 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/marker_icons.dart:138-155 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/marker_icons.dart:138-155 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/marker_icons.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/marker_icons.dart` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (17–18 lines × 3) packages/material_ui/example/lib/scaffold/scaffold.of.0.dart:45— packages/material_ui/example/lib/scaffold/scaffold.of.0.dart:45-62 | packages/material_ui/example/lib/scaffold/scaffold.of.1.dart:43-59 | packages/material_ui/example/lib/scaffold/scaffold_state.show_bottom_sheet.0.dart:42-59 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (17 lines × 10) packages/file_selector/file_selector/example/lib/open_image_page.dart:44— packages/file_selector/file_selector/example/lib/open_image_page.dart:44-60 | packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart:48-64 | packages/file_selector/file_selector_ios/example/lib/open_image_page.dart:45-61 | packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart:47-63 | packages/file_selector/file_selector_linux/example/lib/open_image_page.dart:41-57 | packages/file_selector/file_selector_linux/example/lib/open_multiple_images_page.dart:39-55 | packages/file_selector/file_selector_macos/example/lib/open_image_page.dart:41-57 | packages/file_selector/file_selector_macos/example/lib/open_multiple_images_page.dart:39-55 | packages/file_selector/file_selector_windows/example/lib/open_image_page.dart:41-57 | packages/file_selector/file_selector_windows/example/lib/open_multiple_images_page.dart:39-55 — before extracting anything, compare `packages/file_selector/file_selector/example/lib/open_image_page.dart` and `packages/file_selector/file_selector_ios/example/lib/open_image_page.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14–15 lines × 4) packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart:27— packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart:27-41 | packages/file_selector/file_selector_linux/example/lib/open_multiple_images_page.dart:20-33 | packages/file_selector/file_selector_macos/example/lib/open_multiple_images_page.dart:20-33 | packages/file_selector/file_selector_windows/example/lib/open_multiple_images_page.dart:20-33 — before extracting anything, compare `packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart` and `packages/file_selector/file_selector_linux/example/lib/open_multiple_images_page.dart` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12–15 lines × 2) packages/material_ui/example/lib/expansion_tile/expansion_tile.0.dart:39— packages/material_ui/example/lib/expansion_tile/expansion_tile.0.dart:39-53 | packages/material_ui/test_apps/a11y_assessments/lib/use_cases/expansion_tile.dart:42-53 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (14 lines × 7) packages/material_ui/example/lib/app/app.0.dart:65— packages/material_ui/example/lib/app/app.0.dart:65-78 | packages/material_ui/example/lib/bottom_sheet/show_bottom_sheet.0.dart:67-80 | packages/material_ui/example/lib/bottom_sheet/show_modal_bottom_sheet.2.dart:68-81 | packages/material_ui/example/lib/expansion_tile/expansion_tile.2.dart:62-75 | packages/material_ui/example/lib/popup_menu/popup_menu.2.dart:73-86 | packages/material_ui/example/lib/scaffold/scaffold_messenger_state.show_snack_bar.2.dart:64-77 | packages/material_ui/example/lib/scaffold/scaffold_state.show_bottom_sheet.1.dart:67-80 — before extracting anything, compare `packages/material_ui/example/lib/app/app.0.dart` and `packages/material_ui/example/lib/expansion_tile/expansion_tile.2.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 24) packages/file_selector/file_selector/example/lib/get_directory_page.dart:31— packages/file_selector/file_selector/example/lib/get_directory_page.dart:31-43 | packages/file_selector/file_selector/example/lib/get_multiple_directories_page.dart:35-47 | packages/file_selector/file_selector/example/lib/open_image_page.dart:40-52 | packages/file_selector/file_selector/example/lib/open_multiple_images_page.dart:44-56 | packages/file_selector/file_selector/example/lib/open_text_page.dart:46-58 | packages/file_selector/file_selector_ios/example/lib/open_any_page.dart:29-41 | packages/file_selector/file_selector_ios/example/lib/open_image_page.dart:41-53 | packages/file_selector/file_selector_ios/example/lib/open_multiple_images_page.dart:43-55 | packages/file_selector/file_selector_ios/example/lib/open_text_page.dart:38-50 | packages/file_selector/file_selector_linux/example/lib/get_directory_page.dart:31-43 | packages/file_selector/file_selector_linux/example/lib/get_multiple_directories_page.dart:32-44 | packages/file_selector/file_selector_linux/example/lib/open_image_page.dart:37-49 | packages/file_selector/file_selector_linux/example/lib/open_multiple_images_page.dart:35-47 | packages/file_selector/file_selector_linux/example/lib/open_text_page.dart:34-46 | packages/file_selector/file_selector_macos/example/lib/get_directory_page.dart:31-43 | packages/file_selector/file_selector_macos/example/lib/get_multiple_directories_page.dart:32-44 | packages/file_selector/file_selector_macos/example/lib/open_image_page.dart:37-49 | packages/file_selector/file_selector_macos/example/lib/open_multiple_images_page.dart:35-47 | packages/file_selector/file_selector_macos/example/lib/open_text_page.dart:34-46 | packages/file_selector/file_selector_windows/example/lib/get_directory_page.dart:31-43 | packages/file_selector/file_selector_windows/example/lib/get_multiple_directories_page.dart:32-44 | packages/file_selector/file_selector_windows/example/lib/open_image_page.dart:37-49 | packages/file_selector/file_selector_windows/example/lib/open_multiple_images_page.dart:35-47 | packages/file_selector/file_selector_windows/example/lib/open_text_page.dart:34-46 — before extracting anything, compare `packages/file_selector/file_selector/example/lib/get_multiple_directories_page.dart` and `packages/file_selector/file_selector_linux/example/lib/get_multiple_directories_page.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 15) packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:137— packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart:137-149 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:160-172 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:193-205 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_circle.dart:137-149 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:160-172 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:193-205 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_circle.dart:137-149 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:160-172 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:193-205 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_circle.dart:137-149 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:160-172 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:193-205 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_circle.dart:137-149 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:160-172 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:193-205 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_circle.dart` and `packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11–13 lines × 3) packages/file_selector/file_selector/example/lib/save_text_page.dart:32— packages/file_selector/file_selector/example/lib/save_text_page.dart:32-44 | packages/file_selector/file_selector_linux/example/lib/save_text_page.dart:22-32 | packages/file_selector/file_selector_macos/example/lib/save_text_page.dart:22-32 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (12 lines × 8) packages/camera/camera/example/lib/main.dart:349— packages/camera/camera/example/lib/main.dart:349-360 | packages/camera/camera/example/lib/main.dart:421-432 | packages/camera/camera_android/example/lib/main.dart:353-364 | packages/camera/camera_android/example/lib/main.dart:425-436 | packages/camera/camera_android_camerax/example/lib/main.dart:355-366 | packages/camera/camera_android_camerax/example/lib/main.dart:428-439 | packages/camera/camera_avfoundation/example/lib/main.dart:353-364 | packages/camera/camera_avfoundation/example/lib/main.dart:425-436 — before extracting anything, compare `packages/camera/camera/example/lib/main.dart` and `packages/camera/camera_android/example/lib/main.dart` as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 574 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10–11 lines × 7) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:124— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:124-133 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:118-128 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:124-133 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:141-150 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:141-150 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:141-150 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:141-150 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7–9 lines × 2) packages/material_ui/example/lib/bottom_navigation_bar/bottom_navigation_bar.0.dart:48— packages/material_ui/example/lib/bottom_navigation_bar/bottom_navigation_bar.0.dart:48-54 | packages/material_ui/example/lib/bottom_navigation_bar/bottom_navigation_bar.1.dart:49-57 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8 lines × 12) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:173— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:173-180 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:160-167 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:173-180 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:168-175 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:190-197 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:188-195 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:190-197 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:188-195 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:190-197 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:188-195 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:190-197 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:188-195 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 12) packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:154— packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:154-160 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:141-147 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:154-160 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:149-155 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:171-177 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:169-175 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:171-177 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:169-175 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:171-177 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:169-175 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:171-177 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:169-175 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 12) packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:253— packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart:253-257 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart:284-288 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polygon.dart:254-258 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_polyline.dart:285-289 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polygon.dart:254-258 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_polyline.dart:285-289 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polygon.dart:254-258 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_polyline.dart:285-289 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polygon.dart:254-258 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_polyline.dart:285-289 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polygon.dart:254-258 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_polyline.dart:285-289 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polygon.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 7) packages/file_selector/file_selector_web/example/lib/main.dart:16— packages/file_selector/file_selector_web/example/lib/main.dart:16-27 | packages/google_maps_flutter/google_maps_flutter_web/example/3-64/lib/main.dart:16-27 | packages/google_maps_flutter/google_maps_flutter_web/example/latest/lib/main.dart:16-27 | packages/image_picker/image_picker_for_web/example/lib/main.dart:16-27 | packages/shared_preferences/shared_preferences_web/example/lib/main.dart:16-27 | packages/url_launcher/url_launcher_web/example/lib/main.dart:16-27 | packages/video_player/video_player_web/example/lib/main.dart:16-27 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 7 times.
Duplicated block (5 lines × 22) packages/go_router_builder/example/lib/all_extension_types.dart:84— packages/go_router_builder/example/lib/all_extension_types.dart:84-88 | packages/go_router_builder/example/lib/all_extension_types.dart:110-114 | packages/go_router_builder/example/lib/all_extension_types.dart:133-137 | packages/go_router_builder/example/lib/all_extension_types.dart:159-163 | packages/go_router_builder/example/lib/all_extension_types.dart:185-189 | packages/go_router_builder/example/lib/all_extension_types.dart:211-215 | packages/go_router_builder/example/lib/all_extension_types.dart:240-244 | packages/go_router_builder/example/lib/all_extension_types.dart:270-274 | packages/go_router_builder/example/lib/all_extension_types.dart:296-300 | packages/go_router_builder/example/lib/all_extension_types.dart:316-320 | packages/go_router_builder/example/lib/all_types.dart:57-61 | packages/go_router_builder/example/lib/all_types.dart:83-87 | packages/go_router_builder/example/lib/all_types.dart:103-107 | packages/go_router_builder/example/lib/all_types.dart:129-133 | packages/go_router_builder/example/lib/all_types.dart:155-159 | packages/go_router_builder/example/lib/all_types.dart:181-185 | packages/go_router_builder/example/lib/all_types.dart:208-212 | packages/go_router_builder/example/lib/all_types.dart:235-239 | packages/go_router_builder/example/lib/all_types.dart:261-265 | packages/go_router_builder/example/lib/all_types.dart:281-285 | packages/go_router_builder/example/lib/all_types.dart:354-358 | packages/go_router_builder/example/lib/all_types.dart:424-428 — there are 22 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 22 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (7 lines × 24) packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:198— packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart:198-204 | packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart:180-186 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_advanced_marker.dart:143-149 | packages/google_maps_flutter/google_maps_flutter/example/lib/place_marker.dart:130-136 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/advanced_markers_clustering.dart:188-194 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/clustering.dart:177-183 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_advanced_marker.dart:143-149 | packages/google_maps_flutter/google_maps_flutter_android/example/lib/place_marker.dart:138-144 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/advanced_markers_clustering.dart:187-193 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/clustering.dart:171-177 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_advanced_marker.dart:160-166 | packages/google_maps_flutter/google_maps_flutter_ios/example/lib/place_marker.dart:158-164 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/advanced_markers_clustering.dart:187-193 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/clustering.dart:171-177 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_advanced_marker.dart:160-166 | packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/lib/place_marker.dart:158-164 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/advanced_markers_clustering.dart:187-193 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/clustering.dart:171-177 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_advanced_marker.dart:160-166 | packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/lib/place_marker.dart:158-164 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart:187-193 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart:171-177 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_advanced_marker.dart:160-166 | packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/place_marker.dart:158-164 — before extracting anything, compare `packages/google_maps_flutter/google_maps_flutter/example/lib/advanced_markers_clustering.dart` and `packages/google_maps_flutter/google_maps_flutter/example/lib/clustering.dart` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 30) packages/animations/example/ios/Runner/AppDelegate.swift:10— packages/animations/example/ios/Runner/AppDelegate.swift:10-19 | packages/camera/camera/example/ios/Runner/AppDelegate.swift:10-19 | packages/cross_file/cross_file/example/ios/Runner/AppDelegate.swift:10-19 | packages/cross_file/cross_file_darwin/example/ios/Runner/AppDelegate.swift:10-19 | packages/extension_google_sign_in_as_googleapis_auth/example/ios/Runner/AppDelegate.swift:10-19 | packages/file_selector/file_selector/example/ios/Runner/AppDelegate.swift:10-19 | packages/file_selector/file_selector_ios/example/ios/Runner/AppDelegate.swift:10-19 | packages/go_router/example/ios/Runner/AppDelegate.swift:10-19 | packages/google_fonts/example/ios/Runner/AppDelegate.swift:10-19 | packages/google_sign_in/google_sign_in/example/ios/Runner/AppDelegate.swift:10-19 | packages/google_sign_in/google_sign_in_ios/example/ios/Runner/AppDelegate.swift:10-19 | packages/image_picker/image_picker/example/ios/Runner/AppDelegate.swift:10-19 | packages/in_app_purchase/in_app_purchase/example/ios/Runner/AppDelegate.swift:10-19 | packages/interactive_media_ads/example/ios/Runner/AppDelegate.swift:10-19 | packages/local_auth/local_auth/example/ios/Runner/AppDelegate.swift:10-19 | packages/local_auth/local_auth_darwin/example/ios/Runner/AppDelegate.swift:10-19 | packages/path_provider/path_provider/example/ios/Runner/AppDelegate.swift:10-19 | packages/path_provider/path_provider_foundation/example/ios/Runner/AppDelegate.swift:10-19 | packages/quick_actions/quick_actions/example/ios/Runner/AppDelegate.swift:10-19 | packages/rfw/example/hello/ios/Runner/AppDelegate.swift:10-19 | packages/rfw/example/local/ios/Runner/AppDelegate.swift:10-19 | packages/rfw/example/remote/ios/Runner/AppDelegate.swift:10-19 | packages/shared_preferences/shared_preferences/example/ios/Runner/AppDelegate.swift:10-19 | packages/shared_preferences/shared_preferences_foundation/example/ios/Runner/AppDelegate.swift:10-19 | packages/two_dimensional_scrollables/example/ios/Runner/AppDelegate.swift:10-19 | packages/url_launcher/url_launcher/example/ios/Runner/AppDelegate.swift:10-19 | packages/url_launcher/url_launcher_ios/example/ios/Runner/AppDelegate.swift:10-19 | packages/video_player/video_player/example/ios/Runner/AppDelegate.swift:10-19 | packages/video_player/video_player_avfoundation/example/ios/Runner/AppDelegate.swift:10-19 | packages/webview_flutter/webview_flutter/example/ios/Runner/AppDelegate.swift:10-19 — before extracting anything, compare `packages/animations/example/ios/Runner/AppDelegate.swift` and `packages/camera/camera/example/ios/Runner/AppDelegate.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 33) packages/cross_file/cross_file/example/macos/Runner/AppDelegate.swift:10— packages/cross_file/cross_file/example/macos/Runner/AppDelegate.swift:10-16 | packages/cross_file/cross_file_darwin/example/macos/Runner/AppDelegate.swift:10-16 | packages/cupertino_ui/example/macos/Runner/AppDelegate.swift:10-16 | packages/file_selector/file_selector/example/macos/Runner/AppDelegate.swift:10-16 | packages/file_selector/file_selector_macos/example/macos/Runner/AppDelegate.swift:10-16 | packages/go_router/example/macos/Runner/AppDelegate.swift:10-16 | packages/google_fonts/example/macos/Runner/AppDelegate.swift:10-16 | packages/google_sign_in/google_sign_in/example/macos/Runner/AppDelegate.swift:10-16 | packages/google_sign_in/google_sign_in_ios/example/macos/Runner/AppDelegate.swift:10-16 | packages/image_picker/image_picker/example/macos/Runner/AppDelegate.swift:10-16 | packages/image_picker/image_picker_macos/example/macos/Runner/AppDelegate.swift:10-16 | packages/in_app_purchase/in_app_purchase/example/macos/Runner/AppDelegate.swift:10-16 | packages/in_app_purchase/in_app_purchase_storekit/example/macos/Runner/AppDelegate.swift:10-16 | packages/local_auth/local_auth/example/macos/Runner/AppDelegate.swift:10-16 | packages/local_auth/local_auth_darwin/example/macos/Runner/AppDelegate.swift:10-16 | packages/material_ui/example/macos/Runner/AppDelegate.swift:10-16 | packages/material_ui/test_apps/a11y_assessments/macos/Runner/AppDelegate.swift:10-16 | packages/path_provider/path_provider/example/macos/Runner/AppDelegate.swift:10-16 | packages/path_provider/path_provider_foundation/example/macos/Runner/AppDelegate.swift:10-16 | packages/pigeon/example/app/macos/Runner/AppDelegate.swift:10-16 | packages/pigeon/example/native_interop_app/macos/Runner/AppDelegate.swift:10-16 | packages/rfw/example/hello/macos/Runner/AppDelegate.swift:10-16 | packages/rfw/example/local/macos/Runner/AppDelegate.swift:10-16 | packages/rfw/example/remote/macos/Runner/AppDelegate.swift:10-16 | packages/shared_preferences/shared_preferences/example/macos/Runner/AppDelegate.swift:10-16 | packages/shared_preferences/shared_preferences_foundation/example/macos/Runner/AppDelegate.swift:10-16 | packages/two_dimensional_scrollables/example/macos/Runner/AppDelegate.swift:10-16 | packages/url_launcher/url_launcher/example/macos/Runner/AppDelegate.swift:10-16 | packages/url_launcher/url_launcher_macos/example/macos/Runner/AppDelegate.swift:10-16 | packages/video_player/video_player/example/macos/Runner/AppDelegate.swift:10-16 | packages/video_player/video_player_avfoundation/example/macos/Runner/AppDelegate.swift:10-16 | packages/webview_flutter/webview_flutter/example/macos/Runner/AppDelegate.swift:10-16 | packages/webview_flutter/webview_flutter_wkwebview/example/macos/Runner/AppDelegate.swift:10-16 — before extracting anything, compare `packages/cross_file/cross_file/example/macos/Runner/AppDelegate.swift` and `packages/cross_file/cross_file_darwin/example/macos/Runner/AppDelegate.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 14) packages/cross_file/cross_file/example/macos/Runner/MainFlutterWindow.swift:9— packages/cross_file/cross_file/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/cross_file/cross_file_darwin/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/cupertino_ui/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/google_sign_in/google_sign_in/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/google_sign_in/google_sign_in_ios/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/local_auth/local_auth/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/local_auth/local_auth_darwin/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/material_ui/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/material_ui/test_apps/a11y_assessments/macos/Runner/MainFlutterWindow.swift:9-18 | packages/two_dimensional_scrollables/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/video_player/video_player/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/video_player/video_player_avfoundation/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/webview_flutter/webview_flutter/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/webview_flutter/webview_flutter_wkwebview/example/macos/Runner/MainFlutterWindow.swift:9-18 — before extracting anything, compare `packages/cross_file/cross_file/example/macos/Runner/MainFlutterWindow.swift` and `packages/cross_file/cross_file_darwin/example/macos/Runner/MainFlutterWindow.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 16) packages/file_selector/file_selector/example/macos/Runner/MainFlutterWindow.swift:9— packages/file_selector/file_selector/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/file_selector/file_selector_macos/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/go_router/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/google_fonts/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/image_picker/image_picker/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/image_picker/image_picker_macos/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/in_app_purchase/in_app_purchase/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/path_provider/path_provider/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/path_provider/path_provider_foundation/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/rfw/example/hello/macos/Runner/MainFlutterWindow.swift:9-18 | packages/rfw/example/local/macos/Runner/MainFlutterWindow.swift:9-18 | packages/rfw/example/remote/macos/Runner/MainFlutterWindow.swift:9-18 | packages/shared_preferences/shared_preferences/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/shared_preferences/shared_preferences_foundation/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/url_launcher/url_launcher/example/macos/Runner/MainFlutterWindow.swift:9-18 | packages/url_launcher/url_launcher_macos/example/macos/Runner/MainFlutterWindow.swift:9-18 — before extracting anything, compare `packages/file_selector/file_selector/example/macos/Runner/MainFlutterWindow.swift` and `packages/file_selector/file_selector_macos/example/macos/Runner/MainFlutterWindow.swift` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
IC1 · Incompleteness & stubs· Empty method body · ×1
Empty method body — does nothing with its inputs packages/google_fonts/lib/src/google_fonts_base.dart:329— `_unawaited` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
`async` callback passed to `forEach` packages/google_fonts/generator/generator.dart:287— `forEach` takes a `void` callback and never awaits what it returns, so the Future each `async` call returns is dropped: nothing can await it, the code after this loop runs before any of the awaited work has finished (a function that `await`s around this loop still returns early, and a resource it closes next is closed under the work), and an error is never handled — it surfaces as an uncaught asynchronous error, which terminates a command-line program and reaches only the zone's error handler in Flutter. Iterate with `for (final item in items) { await … }` when the work must run in order, or `await Future.wait(items.map((item) async { … }))` when it may run concurrently, so the enclosing function finishes only when the work does and its failures reach the caller. Where firing and forgetting is genuinely intended, make the callback's whole body a `try { … } catch (e) { … }` that handles the failure, so it cannot escape.
X28 · Index access outside its own emptiness guard· Index access outside its own emptiness guard · ×1
Index access outside its own emptiness guard script/tool/lib/src/federation_safety_check_command.dart:76— This condition tests `relativeComponents` for emptiness and then indexes it on a branch that test does not reach. `relativeComponents[0]` is evaluated whenever the guarded half is false — which includes the case the guard exists to anticipate, `relativeComponents` being empty — so an empty `relativeComponents` indexes position 0 of nothing and throws. This same condition already shows the intended bracketing at line 77: `relativeComponents[0].startsWith(' ')` sits INSIDE the guard. Either the guard is load-bearing, in which case this access escapes it and crashes, or `relativeComponents` cannot be empty here, in which case the guard beside it is dead code — the condition is wrong under both readings. Move the parenthesis so the emptiness test brackets every access to `relativeComponents`.
Orphaned file packages/google_identity_services_web/lib/src/js_interop/google_accounts_oauth2.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/vector_graphics_compiler/lib/src/svg/colors.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/material_ui/lib/src/action_buttons.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/material_ui/lib/src/magnifier.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/material_ui/lib/src/menu_style.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/webview_flutter/webview_flutter_platform_interface/lib/src/platform_webview_controller.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/web_benchmarks/lib/client.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/ground_overlay.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/material_ui/lib/src/arc.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/video_player/video_player_web/lib/src/video_player.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/google_adsense/lib/src/h5/h5_js_interop.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/web_benchmarks/lib/src/computations.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/sensororientation/DeviceOrientationManager.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/material_ui/lib/src/bottom_app_bar_theme.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/heatmap.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/google_maps_flutter/google_maps_flutter_web/lib/src/google_maps_flutter_web.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/features/CameraFeatures.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/in_app_purchase/in_app_purchase_platform_interface/lib/src/in_app_purchase_platform.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/material_ui/lib/src/expansion_tile_theme.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/in_app_purchase/in_app_purchase/lib/in_app_purchase.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/material_ui/lib/src/toggle_buttons_theme.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/material_ui/lib/src/navigation_bar_theme.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/google_identity_services_web/lib/src/js_interop/shared.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/cupertino_ui/lib/src/form_section.dart:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/media/ImageStreamReader.java:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Disabled test packages/camera/camera/example/integration_test/camera_test.dart:105— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/camera/camera_android/example/integration_test/camera_test.dart:105— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/cupertino_ui/example/test/magnifier/text_magnifier.0_test.dart:103— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/cupertino_ui/test/text_field_test.dart:3395— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_android/example/integration_test/google_maps_test.dart:742— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_android/example/integration_test/google_maps_test.dart:771— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_android/example/integration_test/google_maps_test.dart:799— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_android/example/integration_test/google_maps_test.dart:1088— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_android/example/integration_test/google_maps_test.dart:1923— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_android/example/integration_test/google_maps_test.dart:2071— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios/example/integration_test/google_maps_test.dart:383— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios/example/integration_test/google_maps_test.dart:458— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios/example/integration_test/google_maps_test.dart:753— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios/example/integration_test/google_maps_test.dart:788— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios/example/integration_test/google_maps_test.dart:948— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios/example/integration_test/google_maps_test.dart:1821— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios/example/integration_test/google_maps_test.dart:1968— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/integration_test/google_maps_test.dart:383— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/integration_test/google_maps_test.dart:458— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/integration_test/google_maps_test.dart:753— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/integration_test/google_maps_test.dart:788— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/integration_test/google_maps_test.dart:948— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/integration_test/google_maps_test.dart:1821— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios_sdk10/example/integration_test/google_maps_test.dart:1968— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Disabled test packages/google_maps_flutter/google_maps_flutter_ios_sdk9/example/integration_test/google_maps_test.dart:383— A test is skipped/ignored — coverage that looks present but never runs. Re-enable it or delete it so the green run means something.
Duplicated predicate packages/material_ui/lib/src/range_slider.dart:1617— `!_active && _state.valueIndicatorController.isCompleted` appears character-identically in 2 files — packages/material_ui/lib/src/range_slider.dart, packages/material_ui/lib/src/slider.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/cupertino_ui/lib/src/text_field.dart:1549— `!_effectiveFocusNode.hasFocus && _effectiveFocusNode.canRequestFocus` appears character-identically in 2 files — packages/cupertino_ui/lib/src/text_field.dart, packages/material_ui/lib/src/text_field.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/cupertino_ui/lib/src/text_field.dart:1285— `!_selectionGestureDetectorBuilder.shouldShowSelectionToolbar || !_selectionGestureDetectorBuilder.shouldShowSelectionHandles` appears character-identically in 2 files — packages/cupertino_ui/lib/src/text_field.dart, packages/material_ui/lib/src/text_field.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate script/tool/lib/src/common/package_state_utils.dart:265— `!changeLine.hasMatch(line) || line.startsWith('--- ') || line.startsWith('+++ ')` appears character-identically in 2 files — script/tool/lib/src/common/package_state_utils.dart, script/tool/lib/src/federation_safety_check_command.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/cupertino_ui/lib/src/spell_check_suggestions_toolbar.dart:114— `!editableTextState.widget.readOnly && !editableTextState.widget.obscureText` appears character-identically in 2 files — packages/cupertino_ui/lib/src/spell_check_suggestions_toolbar.dart, packages/material_ui/lib/src/spell_check_suggestions_toolbar.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/cupertino_ui/lib/src/text_field.dart:336— `!expands || (maxLines == null && minLines == null)` appears character-identically in 4 files — packages/cupertino_ui/lib/src/text_field.dart, packages/cupertino_ui/lib/src/text_form_field_row.dart, packages/material_ui/lib/src/text_field.dart, packages/material_ui/lib/src/text_form_field.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/material_ui/lib/src/calendar_date_picker.dart:939— `!nextDate.isBefore(widget.firstDate) && !nextDate.isAfter(widget.lastDate)` appears character-identically in 2 files — packages/material_ui/lib/src/calendar_date_picker.dart, packages/material_ui/lib/src/date_picker.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/pigeon/lib/src/kotlin/kotlin_generator.dart:2014— `!returnType.isNullable && !returnType.isVoid` appears character-identically in 2 files — packages/pigeon/lib/src/kotlin/kotlin_generator.dart, packages/pigeon/lib/src/swift/swift_generator.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/cupertino_ui/lib/src/button.dart:345— `!states.contains(WidgetState.disabled) && kIsWeb` appears character-identically in 3 files — packages/cupertino_ui/lib/src/button.dart, packages/cupertino_ui/lib/src/menu_anchor.dart, packages/cupertino_ui/lib/src/radio.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/webview_flutter/webview_flutter_android/lib/src/android_webview_cookie_manager.dart:69— `(char < 0x20 || char > 0x3A) && (char < 0x3C || char > 0x7E)` appears character-identically in 4 files — packages/webview_flutter/webview_flutter_android/lib/src/android_webview_cookie_manager.dart, packages/webview_flutter/webview_flutter_android/lib/src/legacy/webview_android_cookie_manager.dart, packages/webview_flutter/webview_flutter_wkwebview/lib/src/legacy/wkwebview_cookie_manager.dart, packages/webview_flutter/webview_flutter_wkwebview/lib/src/webkit_webview_cookie_manager.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/material_ui/lib/src/shapes/features.dart:100— `(cubic.anchor0X - prevCubic.anchor1X).abs() > distanceEpsilon || (cubic.anchor0Y - prevCubic.anchor1Y).abs() > distanceEpsilon` appears character-identically in 2 files — packages/material_ui/lib/src/shapes/features.dart, packages/material_ui/lib/src/shapes/rounded_polygon.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/cupertino_ui/lib/src/text_field.dart:332— `(maxLines == null) || (minLines == null) || (maxLines >= minLines)` appears character-identically in 5 files — packages/cupertino_ui/lib/src/text_field.dart, packages/cupertino_ui/lib/src/text_form_field_row.dart, packages/material_ui/lib/src/selectable_text.dart, packages/material_ui/lib/src/text_field.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/cupertino_ui/lib/src/route.dart:182— `(nextRoute is! PageRoute<T>) || !nextRoute.fullscreenDialog` appears character-identically in 2 files — packages/cupertino_ui/lib/src/route.dart, packages/material_ui/lib/src/page.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/cupertino_ui/lib/src/checkbox.dart:381— `(states.contains(WidgetState.selected) || states.contains(WidgetState.focused)) && !states.contains(WidgetState.disabled)` appears character-identically in 2 files — packages/cupertino_ui/lib/src/checkbox.dart, packages/cupertino_ui/lib/src/radio.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/material_ui/lib/src/date.dart:398— `(year % 4 == 0) && (year % 100 != 0) || (year % 400 == 0)` appears character-identically in 2 files — packages/material_ui/lib/src/date.dart, packages/material_ui/lib/src/material_localizations.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/cupertino_ui/lib/src/bottom_tab_bar.dart:85— `0 <= currentIndex && currentIndex < items.length` appears character-identically in 2 files — packages/cupertino_ui/lib/src/bottom_tab_bar.dart, packages/material_ui/lib/src/bottom_navigation_bar.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/material_ui/lib/src/checkbox.dart:797— `AnimationStatus.forward || AnimationStatus.completed` appears character-identically in 2 files — packages/material_ui/lib/src/checkbox.dart, packages/material_ui/lib/src/menu_anchor.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/cupertino_ui/lib/src/menu_anchor.dart:644— `AnimationStatus.reverse || AnimationStatus.dismissed` appears character-identically in 2 files — packages/cupertino_ui/lib/src/menu_anchor.dart, packages/material_ui/lib/src/checkbox.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/material_ui/lib/src/checkbox_list_tile.dart:601— `ListTileControlAffinity.trailing || ListTileControlAffinity.platform` appears character-identically in 2 files — packages/material_ui/lib/src/checkbox_list_tile.dart, packages/material_ui/lib/src/switch_list_tile.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/material_ui/lib/src/range_slider.dart:1008— `ShowValueIndicator.alwaysVisible || ShowValueIndicator.always || ShowValueIndicator.onDrag` appears character-identically in 2 files — packages/material_ui/lib/src/range_slider.dart, packages/material_ui/lib/src/slider.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/material_ui/lib/src/selection_area.dart:141— `TargetPlatform.android || TargetPlatform.fuchsia` appears character-identically in 2 files — packages/material_ui/lib/src/selection_area.dart, packages/material_ui/lib/src/typography.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/material_ui/lib/src/app_bar.dart:811— `TargetPlatform.android || TargetPlatform.fuchsia || TargetPlatform.linux || TargetPlatform.windows` appears character-identically in 6 files — packages/material_ui/lib/src/app_bar.dart, packages/material_ui/lib/src/bottom_sheet.dart, packages/material_ui/lib/src/dialog.dart, packages/material_ui/lib/src/drawer.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/material_ui/lib/src/drawer.dart:694— `TargetPlatform.android || TargetPlatform.iOS || TargetPlatform.fuchsia` appears character-identically in 2 files — packages/material_ui/lib/src/drawer.dart, packages/material_ui/lib/src/theme_data.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/cupertino_ui/lib/src/button.dart:315— `TargetPlatform.iOS || TargetPlatform.android || TargetPlatform.fuchsia` appears character-identically in 4 files — packages/cupertino_ui/lib/src/button.dart, packages/cupertino_ui/lib/src/checkbox.dart, packages/material_ui/lib/src/dropdown_menu.dart, packages/material_ui/lib/src/search_anchor.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate packages/material_ui/lib/src/app_bar.dart:810— `TargetPlatform.iOS || TargetPlatform.macOS` appears character-identically in 8 files — packages/material_ui/lib/src/app_bar.dart, packages/material_ui/lib/src/bottom_sheet.dart, packages/material_ui/lib/src/dialog.dart, packages/material_ui/lib/src/drawer.dart. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
README/code drift packages/xdg_directories/README.md:7— packages/xdg_directories/README.md links to `freedesktop.org`, but `packages/xdg_directories/freedesktop.org` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift packages/camera/camera_android_camerax/README.md:75— packages/camera/camera_android_camerax/README.md documents the environment variable `TYPE_CAMERA`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift packages/in_app_purchase/in_app_purchase_platform_interface/README.md:33— packages/in_app_purchase/in_app_purchase_platform_interface/README.md links to `lib/in_app_purchase_platform_addition.dart`, but `packages/in_app_purchase/in_app_purchase_platform_interface/lib/in_app_purchase_platform_addition.dart` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift packages/pigeon/platform_tests/alternate_language_test_plugin/README.md:6— packages/pigeon/platform_tests/alternate_language_test_plugin/README.md links to `../tool/test.dart`, but `packages/pigeon/platform_tests/tool/test.dart` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift packages/camera/camera_android_camerax/.agents/skills/README.md:12— packages/camera/camera_android_camerax/.agents/skills/README.md names `third_party/README.md`, but no file or folder `third_party/README.md` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/README.md:6— packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/README.md links to `../in_app_purchase/README.md`, but `packages/in_app_purchase/in_app_purchase_android/lib/src/in_app_purchase/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_wrappers/README.md:5— packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_wrappers/README.md links to `../in_app_purchase/README.md`, but `packages/in_app_purchase/in_app_purchase_storekit/lib/src/in_app_purchase/README.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 39 significant file(s) lose their only recent owner: script/tool/lib/src/validators/pubspec_validator.dart, script/tool/lib/src/publish_check_command.dart, script/tool/lib/src/fetch_deps_command.dart, packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/MarkerController.swift, packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/MarkerController.swift, packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/MarkerController.swift, script/tool/lib/src/federation_safety_check_command.dart, packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/ConversionUtils.swift (+31 more). Pair on, review, or document these before any departure.
Off-boarding risk: anonymized user #2 — If anonymized user #2 becomes unavailable, 8 significant file(s) lose their only recent owner: packages/pigeon/platform_tests/shared_test_plugin_code/lib/native_interop_integration_tests.dart, packages/pigeon/pigeons/native_interop_tests.dart, packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/TestPlugin.kt, packages/pigeon/pigeons/core_tests.dart, packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/AlternateLanguageTestPlugin.java, packages/pigeon/platform_tests/shared_test_plugin_code/lib/native_interop_test_types.dart, packages/pigeon/lib/src/swift/ffigen_config_generator.dart, packages/pigeon/lib/src/kotlin/jnigen_config_generator.dart. Pair on, review, or document these before any departure.
Off-boarding risk: anonymized user #3 — If anonymized user #3 becomes unavailable, 6 significant file(s) lose their only recent owner: packages/material_ui/tool/gen_defaults/templates/color_scheme_template.dart, packages/material_ui/tool/gen_defaults/templates/button_template.dart, packages/material_ui/tool/gen_defaults/templates/checkbox_template.dart, packages/material_ui/tool/gen_defaults/templates/filter_chip_template.dart, packages/material_ui/tool/gen_defaults/templates/input_chip_template.dart, packages/material_ui/tool/gen_defaults/templates/card_template.dart. Pair on, review, or document these before any departure.
Off-boarding risk: anonymized user #4 — If anonymized user #4 becomes unavailable, 3 significant file(s) lose their only recent owner: packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios/Sources/google_sign_in_ios/GoogleSignInPlugin.swift, packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios/Sources/google_sign_in_ios/GoogleSignInWrappers.swift, packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios/Sources/google_sign_in_ios/GoogleSignInProtocols.swift. Pair on, review, or document these before any departure.
Off-boarding risk: anonymized user #5 — If anonymized user #5 becomes unavailable, 3 significant file(s) lose their only recent owner: packages/material_ui/lib/src/migration_utility.dart, packages/cupertino_ui/lib/src/migration_utility.dart, packages/cupertino_ui/lib/cupertino_ui.dart. Pair on, review, or document these before any departure.
Fat interface: HostIntegrationCoreApi (166 abstract methods) packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java:3439— `HostIntegrationCoreApi` declares 166 abstract methods: `areAllNullableTypesEqual`, `asyncTaskQueueIsBackgroundThread`, `callFlutterCallbackEchoString`, `callFlutterCallbackNoop`, `callFlutterCallbackThrowError`, `callFlutterCallbackThrowErrorFromVoid`, `callFlutterEchoAllNullableTypes`, `callFlutterEchoAllNullableTypesWithoutRecursion`, `callFlutterEchoAllTypes`, `callFlutterEchoAnotherEnum`, `callFlutterEchoAnotherNullableEnum`, `callFlutterEchoBool`, `callFlutterEchoClassList`, `callFlutterEchoClassMap`, `callFlutterEchoDouble`, `callFlutterEchoEnum`, `callFlutterEchoEnumList`, `callFlutterEchoEnumMap`, `callFlutterEchoInt`, `callFlutterEchoIntMap`, `callFlutterEchoList`, `callFlutterEchoMap`, `callFlutterEchoNonNullClassList`, `callFlutterEchoNonNullClassMap`, `callFlutterEchoNonNullEnumList`, `callFlutterEchoNonNullEnumMap`, `callFlutterEchoNonNullIntMap`, `callFlutterEchoNonNullStringMap`, `callFlutterEchoNullableBool`, `callFlutterEchoNullableClassList`, `callFlutterEchoNullableClassMap`, `callFlutterEchoNullableDouble`, `callFlutterEchoNullableEnum`, `callFlutterEchoNullableEnumList`, `callFlutterEchoNullableEnumMap`, `callFlutterEchoNullableInt`, `callFlutterEchoNullableIntMap`, `callFlutterEchoNullableList`, `callFlutterEchoNullableMap`, `callFlutterEchoNullableNonNullClassList`, and 126 more. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: CameraProperties (20 abstract methods) packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/CameraProperties.java:16— `CameraProperties` declares 20 abstract methods: `getAvailableNoiseReductionModes`, `getCameraName`, `getControlAutoExposureAvailableTargetFpsRanges`, `getControlAutoExposureCompensationRange`, `getControlAutoExposureCompensationStep`, `getControlAutoFocusAvailableModes`, `getControlMaxRegionsAutoExposure`, `getControlMaxRegionsAutoFocus`, `getDistortionCorrectionAvailableModes`, `getFlashInfoAvailable`, `getHardwareLevel`, `getLensFacing`, `getLensInfoMinimumFocusDistance`, `getScalerAvailableMaxDigitalZoom`, `getScalerMaxZoomRatio`, `getScalerMinZoomRatio`, `getSensorInfoActiveArraySize`, `getSensorInfoPixelArraySize`, `getSensorInfoPreCorrectionActiveArraySize`, `getSensorOrientation`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: CameraApi (29 abstract methods) packages/camera/camera_android/android/src/main/java/io/flutter/plugins/camera/Messages.java:1205— `CameraApi` declares 29 abstract methods: `create`, `dispose`, `getAvailableCameras`, `getExposureOffsetStepSize`, `getMaxExposureOffset`, `getMaxZoomLevel`, `getMinExposureOffset`, `getMinZoomLevel`, `initialize`, `lockCaptureOrientation`, `pausePreview`, `pauseVideoRecording`, `resumePreview`, `resumeVideoRecording`, `setDescriptionWhileRecording`, `setExposureMode`, `setExposureOffset`, `setExposurePoint`, `setFlashMode`, `setFocusMode`, `setFocusPoint`, `setJpegImageQuality`, `setZoomLevel`, `startImageStream`, `startVideoRecording`, `stopImageStream`, `stopVideoRecording`, `takePicture`, `unlockCaptureOrientation`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
D16 · Bus Factor· Further sole-owners (lower concentration) · ×1
Further sole-owners (lower concentration) — 9 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (70 single-owned of 1109 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 1109 of the 2047 production source files in this repository met that bar). They are anonymized user #6 (2 file(s)), anonymized user #7 (2 file(s)), anonymized user #8 (1 file(s)), anonymized user #9 (1 file(s)), anonymized user #10 (1 file(s)), anonymized user #11 (1 file(s)) (+3 more) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/UIDelegateProxyAPIDelegate.swift, packages/webview_flutter/webview_flutter_wkwebview/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/WebViewConfigurationProxyAPIDelegate.swift, script/tool/lib/src/in_flight_release_check_command.dart, packages/material_ui/test_apps/a11y_assessments/lib/main.dart, packages/interactive_media_ads/pigeons/interactive_media_ads_ios.dart, packages/flutter_shaders/lib/src/set_uniforms.dart, packages/cupertino_ui/lib/src/cupertino_focus_halo.dart, script/tool/lib/src/test_dart_fixes_command.dart (+3 more).
No ADRs found — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`.
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×1
Projects may be oversized for their cohesion — 6 of 154 project(s) overshoot their size bounds, lowering Project Cohesion to 9.3/10. The most over is `packages/material_ui` (159833 LoC, 579 module-visible types across 5 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D28 · Secrets (history)· Rotate the exposed credentials · ×1
D34 · Knowledge Freshness· Further orphaned files (smaller) · ×1
Further orphaned files (smaller) — 147 smaller file(s) also have no living knowledge — folded into the freshness score and metrics rather than raised one row each — most significant first: packages/google_identity_services_web/lib/src/js_interop/google_accounts_oauth2.dart, packages/vector_graphics_compiler/lib/src/svg/colors.dart, packages/material_ui/lib/src/action_buttons.dart, packages/material_ui/lib/src/magnifier.dart, packages/material_ui/lib/src/menu_style.dart, packages/webview_flutter/webview_flutter_platform_interface/lib/src/platform_webview_controller.dart, packages/web_benchmarks/lib/client.dart, packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/types/ground_overlay.dart (and 139 more) (165 orphaned of 1109 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 1109 of the 2047 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
Logging is not universal — Only 11/201 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`, `packages/animations/example`, `packages/animations/example/ios`, `packages/camera/camera/example`, `packages/camera/camera/example/ios` and 185 more.
No SAST — No static application security testing detected. For this repository's stack, add the Dart analyzer's security lints plus `semgrep --config=auto` as a CI step. What was searched, so you can tell an absence from a miss: the 23717 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
Security headers incomplete — Set: Cross-Origin-Embedder-Policy, Cross-Origin-Opener-Policy. Missing: Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options — the four headers that carry the points of this card's security-headers term (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options), 0.5 each.(−2.0 on this card.) The server: packages/web_benchmarks/pubspec.yaml:19 — depends on `shelf`.
No inbound request validation detected — No handler of this repository's Dart server answers 400, 413 or 422 (`Response.badRequest`, `HttpStatus.badRequest`, `statusCode = 400`) and no validation package (luthor, acanthis, ez_validator, json_schema, …) is imported — nothing shows inbound requests being checked, and refused, before a handler acts on them. A check that answers its failure with 200 and an error body is not seen. (−2.0 on this card.) The server: packages/web_benchmarks/pubspec.yaml:19 — depends on `shelf`.
Silent fallback default in catch packages/pigeon/example/app/lib/main.dart:69— `add` turns every thrown error into `0` — a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the `catch` or in the `///` doc, and the row stops firing.
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 13 file(s) — `packages/camera/camera_avfoundation/darwin/camera_avfoundation/Sources/camera_avfoundation/CameraPermissionManager.swift`, `packages/cross_file/cross_file_darwin/darwin/cross_file_darwin/Sources/cross_file_darwin/ProxyAPIRegistrar.swift`, `packages/google_maps_flutter/google_maps_flutter_ios_sdk10/ios/google_maps_flutter_ios_sdk10/Sources/google_maps_flutter_ios_sdk10/TileOverlayController.swift`, `packages/google_maps_flutter/google_maps_flutter_ios_sdk9/ios/google_maps_flutter_ios_sdk9/Sources/google_maps_flutter_ios_sdk9/TileOverlayController.swift`, `packages/google_maps_flutter/google_maps_flutter_ios_shared_code/ios/google_maps_flutter_ios/Sources/google_maps_flutter_ios/TileOverlayController.swift`, … (+8 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
Run 01a16935-f0b6-73a9-a025-fd529cc4a023 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 39 · Warnings: 3023 · Recommendations: 239 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 23-10-2026 @ 14:41 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.