Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ Use `///` (doc comments) for all public members to allow tools like `dartdoc` to
/// This widget handles the loading state automatically and disables
/// itself while the transaction is processing.
@Deprecated('Use PurchaseButtonV2 instead')
class PurchaseButton extends StatelessWidget { ... }
class PurchaseButton extends StatelessWidget {
// ...
}
```

### Property Documentation
Expand Down Expand Up @@ -72,6 +74,10 @@ class FlightPath extends StatelessWidget {
///
/// The [coordinates] must contain at least two points.
const FlightPath({required this.coordinates, super.key});

/// The points that make up the flight path.
final List<Point> coordinates;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The constructor of FlightPath uses this.coordinates as an initializing formal parameter, but the coordinates field is not declared in the class. In Dart, this results in a compile-time error because the class doesn't have an instance field named coordinates.

To make the snippet fully valid, declare the coordinates field within the class.

Suggested change
}
final List<Point> coordinates;
}

```

### State Management
Expand Down
Loading