AsyncTask<Param, Progress, Result> class

Constructors

AsyncTask({OnPreExecute? onPreExecute, DoInBackground<Param, Result>? doInBackground, OnProgressUpdate<Progress>? onProgressUpdate, OnPostExecute<Result>? onPostExecute, OnCompleted? onCompleted, OnCanceled? onCanceled})

Properties

doInBackground DoInBackground<Param, Result>?
no setter
hashCode int
The hash code for this object.
no setterinherited
isCanceled bool
Whether the completer was canceled before the result was ready.
no setterinherited
isCompleted bool
Whether the complete or completeError have been called.
no setter
isRunning bool
no setter
onCanceled OnCanceled?
no setter
onCompleted OnCompleted?
no setter
onPostExecute OnPostExecute<Result>?
no setter
onPreExecute OnPreExecute?
no setter
onProgressUpdate OnProgressUpdate<Progress>?
no setter
operation → CancelableOperation<Result>
The operation controlled by this completer.
latefinalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() → void
complete([FutureOr<Result>? value]) → void
Completes operation with value.
completeError(Object error, [StackTrace? stackTrace]) → void
Completes operation with error and stackTrace.
inherited
completeOperation(CancelableOperation<Result> result, {bool propagateCancel = true}) → void
Makes this CancelableCompleter.operation complete with the same result as result.
inherited
execute({OnPreExecute? onPreExecute, DoInBackground<Param, Result>? doInBackground, OnProgressUpdate<Progress>? onProgressUpdate, OnPostExecute<Result>? onPostExecute, OnCompleted? onCompleted, List<Param>? values}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publishProgress({List<Progress>? values}) → void
toString() String
A string representation of this object.
inherited

Operators

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