Download flutter/packages/flutter_tools/lib/src/base/version_range.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 833 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/packages/flutter_tools/lib/src/base/version_range.dart
- Command line
-
hf download hf://luom2645/agent-workspace@7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/packages/flutter_tools/lib/src/base/version_range.dart
-
curl -L -o version_range.dart https://huggingface.co/luom2645/agent-workspace/resolve/7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/packages/flutter_tools/lib/src/base/version_range.dart
833 Bytes
| // Copyright 2014 The Flutter Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| import 'package:meta/meta.dart' show immutable; | |
| /// Data class that represents a range of versions in their String | |
| /// representation. | |
| /// | |
| /// Both the [versionMin] and [versionMax] are inclusive versions, and undefined | |
| /// values represent an unknown minimum/maximum version. | |
| class VersionRange { | |
| const VersionRange( | |
| this.versionMin, | |
| this.versionMax, | |
| ); | |
| final String? versionMin; | |
| final String? versionMax; | |
| bool operator ==(Object other) => | |
| other is VersionRange && | |
| other.versionMin == versionMin && | |
| other.versionMax == versionMax; | |
| int get hashCode => Object.hash(versionMin, versionMax); | |
| } | |