ProgressUpdate class

Data class for streaming progress updates

Constructors

ProgressUpdate({String? title, String? subtitle, double? progress, bool isCompleted = false, bool hasError = false, String? errorMessage})
const
ProgressUpdate.complete({String? message})
Creates a completion update
factory
ProgressUpdate.error(String message)
Creates an error update
factory
ProgressUpdate.message(String message)
Creates a progress update with just a message
factory
ProgressUpdate.withProgress(double progress, {String? message})
Creates a progress update with progress value
factory

Properties

errorMessage String?
final
hasError bool
final
hashCode int
The hash code for this object.
no setterinherited
isCompleted bool
final
progress double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitle String?
final
title String?
final

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