OperationType enum

Type of a transient operation.

We need a type to discriminate between operations (cf. getNewKey). When we are in a collection of operations, the keys will helper us know

Inheritance
Available extensions

Values

image → const OperationType
const OperationType('I', 'IMAGE_UPLOAD')
crop → const OperationType
const OperationType('C', 'IMAGE_CROP')
unselect → const OperationType
const OperationType('U', 'IMAGE_UNSELECT')
hungerGames → const OperationType
const OperationType('H', 'HUNGER_GAMES')
refreshLater → const OperationType
const OperationType('R', 'PRODUCT_REFRESH_LATER')
offline → const OperationType
const OperationType('O', 'OFFLINE_PREDOWNLOAD')
offlineBarcodes → const OperationType
const OperationType('B', 'OFFLINE_BARCODES')
offlineProducts → const OperationType
const OperationType('P', 'OFFLINE_PRODUCTS')
fullRefresh → const OperationType
const OperationType('F', 'FULL_REFRESH')
languageRefresh → const OperationType
const OperationType('L', 'LANGUAGE_REFRESH')
addPrice → const OperationType
const OperationType('A', 'ADD_PRICE')
addOtherPrice → const OperationType
const OperationType('E', 'ADD_OTHER_PRICE')
details → const OperationType
const OperationType('D', 'PRODUCT_EDIT')
folksonomy → const OperationType
const OperationType('X', 'UPDATE_PRODUCT_TAG')

Properties

hashCode → int
The hash code for this object.
no setterinherited
final
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
processName → String
Process Name, that helps building tasks.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromJson(Map<String, dynamic> map) → BackgroundTask
getLabel(AppLocalizations appLocalizations) → String
getNewKey(LocalDatabase localDatabase, {String? barcode = BackgroundTaskProgressing.noBarcode, int? totalSize, int? soFarSize, String? work, ProductType? productType}) → Future<String>
matches(TransientOperation action) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

getBarcode(String key) → String
getOperationType(String key) → OperationType?
getProductType(String key) → String?
getSequentialId(TransientOperation operation) → int
getSoFarSize(String key) → int?
getTotalSize(String key) → int?
getWork(String key) → String?
sort(TransientOperation operationA, TransientOperation operationB) → int

Constants

values → const List<OperationType>
A constant List of the values in this enum, in order of their declaration.