stop method
Complete and save the logging.
Errors occur if they are executed consecutively.
ログの記録を完了して保存します。
連続して実行するとエラーがでます。
Implementation
Future<void> stop() async {
assert(
_startTime != null,
"It has not started yet. Please execute [start] first.",
);
if (_startTime == null) {
return;
}
final endTime = DateTime.now();
await Future.wait(values.map((e) => e.stop(_startTime!, endTime)));
_onStop.call();
}