PerfTestOne class Null safety

Wrapper class to execute user-defined procedures multiple times and measure either actual laps for a given time span or time span for a given number of iterations


PerfTestOne(String name, {PerfTestFormat? format, bool isMyStopwatch = false, bool isOutLaps = false, int laps = 0, PerfTestLot? lot, String outRatio = '', String outValue = '', num ratio = 0, Stopwatch? stopwatch, PerfTestOneProc? testProc, PerfTestOneProcSync? testProcSync})
The constructor


format PerfTestFormat
Convenience property derived from lot
read / write
hashCode int
The hash code for this object.
read-only, inherited
isMyStopwatch bool
Flag indicating that the stopwatch is started and stopped by a user rather than by this class object
read / write
isOutLaps bool
Flag indicating that the output data is laps rather than span
read / write
laps int
Actual number of the test iterations upon execution completion
read / write
lot PerfTestLot?
read / write
name String
Name of the test
outRatio String
Output value of ratio
read / write
outValue String
Output value of value
read / write
ratio num
Ratio versus the first test
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
span Duration
Total duration of testProc execution
read / write
stopwatch Stopwatch
Stopwatch used to measure performance
read / write
testProc PerfTestOneProc?
Actual user-defined procedure (asynchronous)
testProcSync PerfTestOneProcSync?
Actual user-defined procedure (synchronous)
value int
Generic value based on expectation


exec({int? maxLaps, Duration? maxSpan}) Future<PerfTestOne>
Actual test execution (asynchronous)
execSync({int? maxLaps, Duration? maxSpan}) PerfTestOne
Actual test execution (synchronous)
initLot(PerfTestLot? newLot) PerfTestOne
Initialize parent property with newLot as well as initialize convenience properties depending on that
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
setOutValue() → void
Serializer of the mode-specific value
setRatio(PerfTestOne versus) → void
Calculate ratio against another test
toString() String
A string representation of this object.


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