getHistory static method

Future<List<TaskHistoryEntry>> getHistory(
  1. String taskName, {
  2. int limit = 50,
  3. String? status,
  4. DateTime? sinceDate,
})

Gets execution history for a task (debugging and analytics).

Example:

final history = await TaskFlow.getHistory('syncData', limit: 20);
for (final entry in history) {
  print('${entry.taskName}: ${entry.status} in ${entry.durationMs}ms');
}

Implementation

static Future<List<TaskHistoryEntry>> getHistory(
  String taskName, {
  int limit = 50,
  String? status,
  DateTime? sinceDate,
}) async {
  _ensureInitialized();
  // TODO: Implement history retrieval from platform
  return [];
}