getHistory static method
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 [];
}