SFactsStamp class

What a facts table was computed against: the Dart SDK and the versions of the packages its types come from.

A runtime compares it with what it bridges (doc/resolved_bundles.md in tom_ast_generator): for every packages entry the runtime bridges, the version its bridges were generated from must equal the stamp's, and, where the host can tell, the Dart SDK's <major>.<minor> must equal sdkVersion's. A mismatch makes the runtime ignore the facts and approximate as without them. A package the bundle carries as source is consistent with its facts by construction and is not compared.

Constructors

SFactsStamp({required String sdkVersion, Map<String, String> packages = const {}})
const
SFactsStamp.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
packages → Map<String, String>
Package name -> version, for the packages the facts' types come from whose version the bundler knew (dart: libraries are covered by sdkVersion).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sdkVersion → String
The Dart SDK version the facts were computed with, e.g. 3.13.7.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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