PackageMetrics class

Constructors

PackageMetrics({required String name, required int pubPoints, required int popularity, required int likes, double recencyScore = 1.0, double descriptionScore = 0.0, bool isOfficial = false, List<String> strengths = const [], List<String> weaknesses = const []})

Properties

compositeScore → double
no setter
descriptionScore → double
final
hashCode → int
The hash code for this object.
no setterinherited
isOfficial → bool
final
likes → int
final
name → String
final
popularity → int
final
pubPoints → int
final
recencyScore → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strengths → List<String>
final
weaknesses → List<String>
final

Methods

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

Operators

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

Static Methods

fromPackageData({required String name, required int grantedPoints, required int maxPoints, required int popularity, required int likes, String? publisher, DateTime? lastUpdated, double? descriptionScore}) → PackageMetrics