SensorReading class

Immutable snapshot of a single soil sensor reading.

Constructors

SensorReading({required double moisture, required double temperature, required double conductivity, required double ph, required double nitrogen, required double phosphorus, required double potassium, required DateTime readAt})
Creates a SensorReading with all measured parameters.
const

Properties

conductivity double
Electrical conductivity (µS/cm).
final
hashCode int
The hash code for this object.
no setterinherited
hasNpk bool
Whether this reading has NPK data (extended 7-register sensor).
no setter
isRecent bool
Whether this reading is recent enough to pre-fill a soil log form.
no setter
moisture double
Volumetric water content (%).
final
nitrogen double
Available nitrogen content (mg/kg). Zero on basic 3-register sensors.
final
ph double
Soil pH value (0.0 – 14.0).
final
phosphorus double
Available phosphorus content (mg/kg). Zero on basic 3-register sensors.
final
potassium double
Available potassium content (mg/kg). Zero on basic 3-register sensors.
final
readAt DateTime
Timestamp when the reading was taken.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
temperature double
Soil temperature (°C). Negative values indicate sub-zero conditions.
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