Target class

A representation of a target, e.g. a download or a lottery.

Constructors

Target({required String target, required String additionalInfo, required double score, required TargetRule rule})
Creates a new Target instance with the provided parameters.
const

Properties

additionalInfo String
Additional information, such as the name of the downloaded document.
final
hashCode int
The hash code for this object.
no setterinherited
rule TargetRule
The method to be used for this target. It can be one of the following:
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double
The score of the target, which is used for calculating the conversion rate.
final
target String
The name of the target, e.g. "download" or "lottery".
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