BackgroundTaskInfo class

Constructors

BackgroundTaskInfo({String? tag, required BackgroundTask handle, required String taskId, PlatformArguments? args})
BackgroundTaskInfo.fromJson(String source)
factory
BackgroundTaskInfo.fromMap(Map map)
factory

Properties

args PlatformArguments?
These arguments will be passed to the background handle
final
handle BackgroundTask
This is the function that will execute in the background. Make sure this is a top-level or a static function
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String?
Optional. Need not be unique. Just used to categorize a task.
final
taskId String
You can pass your own unique Id or one will be generated for you
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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