PackageInfo class

Version, publish date and per-platform plugin declarations for a package's latest version, from GET /api/packages/<name>.

Constructors

PackageInfo({required String version, required DateTime published, required Map<String, PluginPlatformInfo> platforms, bool isFlutterPlugin = false})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isFlutterPlugin → bool
Whether this version's pubspec declares a flutter.plugin section at all (CLI live-check task, 2026-09-27) — false for a pure Dart package, which can't block a native build and is skipped rather than checked.
final
platformDefaultPackages → Map<String, String>
Platform name to federated default package, for platforms that declare one.
no setter
platforms → Map<String, PluginPlatformInfo>
Platform name (ios, macos, android, ...) to its declared flutter.plugin.platforms entry, for platforms the pubspec lists.
final
published → DateTime
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → String
final

Methods

defaultPackageFor(String platform) → String?
The federated default package declared for platform, or null when this package declares no default_package for it (not federated, or the platform isn't listed at all).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
platformInfo(String platform) → PluginPlatformInfo?
The declared entry for platform, or null when this package's pubspec doesn't list it at all.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited