ServiceName enum Null safety
The Background Service that will be associated with the commands/events. Every Background Service operates independently, but they share the same API.
Constructors
- ServiceName(String value)
-
const
- ServiceName.fromJson(String value)
-
factory
Values
- backgroundFetch → const ServiceName
-
ServiceName('backgroundFetch')
- backgroundSync → const ServiceName
-
ServiceName('backgroundSync')
- pushMessaging → const ServiceName
-
ServiceName('pushMessaging')
- notifications → const ServiceName
-
ServiceName('notifications')
- paymentHandler → const ServiceName
-
ServiceName('paymentHandler')
- periodicBackgroundSync → const ServiceName
-
ServiceName('periodicBackgroundSync')
Properties
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ServiceName> -
A constant List of the values in this enum, in order of their declaration.
[backgroundFetch, backgroundSync, pushMessaging, notifications, paymentHandler, periodicBackgroundSync]