Download flutter/packages/flutter_tools/lib/src/base/version_range.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 924 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/flutter_tools/lib/src/base/version_range.dart
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/packages/flutter_tools/lib/src/base/version_range.dart
-
curl -L -o version_range.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/flutter_tools/lib/src/base/version_range.dart
924 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); | |
| String toString() { | |
| return 'VersionRange(versionMin: $versionMin, versionMax: $versionMax)'; | |
| } | |
| } | |