CrashEvent class

Annotations

Constructors

CrashEvent.new({required int time, required Location location, required List<Location> precedingLocations, required double magnitude, required double speedAtImpact, required double deltaV, required double confidence, CrashSeverity severity = CrashSeverity.unavailable, DetectorMode detectorMode = DetectorMode.unknown})
const

Properties

confidence double
a confidence value between 0 and 100.
final
deltaV double
The delta-v estimated over the peak duration, in m/s.
final
detectorMode DetectorMode
Specifies the crash detection mode that was active when this crash event was detected.
final
hashCode int
The hash code for this object.
no setterinherited
location → Location
The last known location prior to the crash.
final
magnitude double
The magnitude of the crash event in m/s2.
final
precedingLocations List<Location>
a list of recent locations (from the oldest to the most recent) leading up to this crash, within a certain timeframe.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity CrashSeverity
the severity of the crash event.
final
speedAtImpact double
The inferred speed at the moment of impact, in m/s.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setter
time int
The UTC time of the crash event in milliseconds.
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