endFailure method Null safety

void endFailure(
  1. Exception error
)

Ends timing of a failed block, calculates elapsed time and records the associated trace.

  • error an error object associated with this trace.