Skip to content

Commit

Permalink
Update to Dart 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
renggli committed Feb 15, 2024
1 parent 7fad58d commit 45745c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ analyzer:
strict-raw-types: true
linter:
rules:
- annotate_redeclares
- avoid_dynamic_calls
- avoid_final_parameters
- avoid_print
- avoid_unused_constructor_parameters
- camel_case_types
- collection_methods_unrelated_type
- combinators_ordering
- comment_references
- directives_ordering
- invalid_case_patterns
- no_self_assignments
- no_wildcard_variable_uses
Expand Down
7 changes: 3 additions & 4 deletions lib/src/graph/path.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ class Path<V, E> with ToStringPrinter {
/// Internal constructor.
Path._({required Iterable<V> vertices, required Iterable<E> values})
: vertices = vertices.toList(growable: false),
values = values.toList(growable: false) {
assert(vertices.isNotEmpty);
assert(vertices.length - 1 == values.length);
}
values = values.toList(growable: false),
assert(vertices.isNotEmpty),
assert(vertices.length - 1 == values.length);

/// The vertices on this path.
final List<V> vertices;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ topics:
- unicode

environment:
sdk: ^3.2.0
sdk: ^3.3.0
dependencies:
characters: ^1.3.0
clock: ^1.1.0
Expand Down

0 comments on commit 45745c4

Please sign in to comment.