Skip to content

Commit

Permalink
chore: resolve pub warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Alqueraf committed Jul 5, 2024
1 parent 3153b24 commit 5ae2d49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .fvm/fvm_config.json

This file was deleted.

10 changes: 5 additions & 5 deletions lib/src/util/version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,20 @@ class Version implements Comparable<Version> {
List<String> get preRelease => List<String>.from(_preRelease);

/// Determines whether the left-hand [Version] represents a lower precedence than the right-hand [Version].
bool operator <(dynamic o) => o is Version && _compare(this, o) < 0;
bool operator <(Object o) => o is Version && _compare(this, o) < 0;

/// Determines whether the left-hand [Version] represents an equal or lower precedence than the right-hand [Version].
bool operator <=(dynamic o) => o is Version && _compare(this, o) <= 0;
bool operator <=(Object o) => o is Version && _compare(this, o) <= 0;

/// Determines whether the left-hand [Version] represents an equal precedence to the right-hand [Version].
@override
bool operator ==(dynamic o) => o is Version && _compare(this, o) == 0;
bool operator ==(Object o) => o is Version && _compare(this, o) == 0;

/// Determines whether the left-hand [Version] represents a greater precedence than the right-hand [Version].
bool operator >(dynamic o) => o is Version && _compare(this, o) > 0;
bool operator >(Object o) => o is Version && _compare(this, o) > 0;

/// Determines whether the left-hand [Version] represents an equal or greater precedence than the right-hand [Version].
bool operator >=(dynamic o) => o is Version && _compare(this, o) >= 0;
bool operator >=(Object o) => o is Version && _compare(this, o) >= 0;

@override
int compareTo(Version other) {
Expand Down

0 comments on commit 5ae2d49

Please sign in to comment.