recent method

List<SlowOperation> recent([
  1. int count = 10
])

Get recent operations (last N).

Implementation

List<SlowOperation> recent([int count = 10]) {
  if (_operations.length <= count) return List.unmodifiable(_operations);
  return List.unmodifiable(_operations.sublist(_operations.length - count));
}