decodeFraction property
double?
get
decodeFraction
Decode progress in [0, 1] while decoding, or null when it is not
known (not decoding, or the engine did not report bin counts). Drives a
determinate progress indicator; a null value means show an
indeterminate one.
Implementation
double? get decodeFraction {
if (!decoding) return null;
final t = totalBins, c = coverageBins;
if (t == null || t <= 0 || c == null) return null;
return (c / t).clamp(0.0, 1.0);
}