track<T> method
Implementation
@override
T track<T>(T Function() action) {
if (isStarted) {
throw StateError('Can not be tracked twice');
}
_start();
try {
return action();
} finally {
_stop();
}
}
@override
T track<T>(T Function() action) {
if (isStarted) {
throw StateError('Can not be tracked twice');
}
_start();
try {
return action();
} finally {
_stop();
}
}