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.

Inheritance

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

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value String
final

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]