ResumeChecker class

Smart resume detection utility

This class checks if downloads can be properly resumed by validating:

  1. File existence and state
  2. Task registry mapping
  3. background_downloader resume capability
  4. Server support for ranges

Constructors

ResumeChecker.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

checkModelResume(ModelSpec spec) Future<Map<String, ResumeStatus>>
Check resume status for all files in a model specification
checkResumeStatus(String filename) Future<ResumeStatus>
Check resume status for a single file
cleanupInvalidResumeStates(ModelSpec spec) Future<int>
Clean up invalid resume states for a model
getResumeRecommendations(ModelSpec spec) Future<Map<String, ResumeRecommendation>>
Get resume recommendations for a model
getResumeStatistics() Future<Map<String, dynamic>>
Get statistics about resume states across all registered tasks