testResult property

ScienceResult get testResult

Passes the overriden data to the sensor's test to determine signs of life.

Implementation

ScienceResult get testResult => data.readings.isEmpty
	? ScienceResult.loading : sensor.test(SampleData()
		..min = testBuilder.min.value
		..average = testBuilder.average.value
		..max = testBuilder.max.value,
	);