AsyncTask<Param, Progress, Result> class Null safety

Inheritance

Constructors

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

Properties

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

Methods

cancel() → void
complete([FutureOr<Result>? value]) → void
Completes operation with value.
override
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 non-existent 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