progress property

num? get progress

The current progress of the asynchronous operation.

This value must be between 0 and 1.

By default, the progress will always be null. Notifiers can set this manually as such:

state = AsyncLoading(progress: 0);
await something();
ref.state = AsyncLoading(progress: 1);

Implementation

num? get progress => _loading?.progress;