Metrics class

Represents specific performance metrics for a year.

Constructors

Metrics({required double fouls, required double penalties, required double averageSpeed})
Constructs a Metrics instance with specified properties.
Metrics.fromJson(Map<String, dynamic> json)
Creates a Metrics instance from a JSON Map.
factory

Properties

averageSpeed double
The average speed recorded.
final
fouls double
The average number of fouls committed.
final
hashCode int
The hash code for this object.
no setterinherited
penalties double
The average penalties incurred.
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
toString() String
A string representation of this object.
inherited

Operators

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