SbomDocument class
A reproducible bill-of-materials document — toJson()'s entries
list is always in the same (name-sorted) order parsePubspecLock
already guarantees, so hashing/diffing 2 SBOMs of the same lock file
is meaningful.
Constructors
-
SbomDocument({required String packageName, required String packageVersion, required int generatedAtMs, required List<
DependencyEntry> entries}) -
const
Properties
-
entries
→ List<
DependencyEntry> -
final
- generatedAtMs → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- packageName → String
-
final
- packageVersion → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- schemaVersion → const int