ServiceData class Null safety

ServiceData is the shared data that is passed around between foreground-service and application it basically acts as both argument and result.

you create an implementation of ServiceData that you need then you pass it around between foreground-service and application. this how foreground-service and application communicate to each other

Constructors

ServiceData()

Properties

hashCode int
The hash code for this object.
read-only, inherited
notificationDescription String
read-only
notificationTitle String
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() String
toString() String
A string representation of this object.
inherited

Operators

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