ImprovementRate class

This class represents the calculated improvement rate.

The previous and following data used to calculate the improvement rate will be set to before and after. The improvement rate calculated using these before and after values will be set in value in the form of a percentage.

The value set in trend indicates whether this calculated improvement rate is trending toward better or toward worse.

Constructors

ImprovementRate.from({required double value, required Trend trend, required ShouldBe policy, required double before, required double after})
Returns the new instance of ImprovementRate based on arguments.

Properties

after double
The following data to be compared with previous data
final
before double
The previous data
final
hashCode int
The hash code for this object.
no setteroverride
policy ShouldBe
The policy for calculating the improvement rate
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trend Trend
The trend of improvement rate
final
value double
The improvement rate calculated from before and after in percentage
final

Methods

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

Operators

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