LocatorInput class abstract

Available extensions
Annotations
  • @unfreezed

Constructors

LocatorInput({String? id, @Default.new([]) List<String> assetsIds, @Default.new([]) List<String> geofencesIds, @Default.new([]) List<String> triggersIds, @TimestampOrNullConverter() DateTime? expiresAt, String? customizationId})
factory
LocatorInput.fromJson(Map<String, dynamic> json)
factory

Properties

assetsIds List<String>
assetsIds is the list of assets associated with the locator
getter/setter pairinherited
copyWith → $LocatorInputCopyWith<LocatorInput>
Create a copy of LocatorInput with the given fields replaced by the non-null parameter values.
no setterinherited
customizationId String?
customizationId is the ID of the registered app that will act as a customization for this locator
getter/setter pairinherited
expiresAt DateTime?
expiresAt is the expiration date of the locator, can be null for non-expiring locators
getter/setter pairinherited
geofencesIds List<String>
geofencesIds is the list of geofences associated with the locator
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
id is the UUIDv4 identifier of the locator
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
triggersIds List<String>
triggersIds is the list of triggers associated with the locator
getter/setter pairinherited

Methods

map<TResult extends Object?>(TResult $default(_LocatorInput value)) → TResult

Available on LocatorInput, provided by the LocatorInputPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_LocatorInput value)?) → TResult?

Available on LocatorInput, provided by the LocatorInputPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_LocatorInput value)?, {required TResult orElse()}) → TResult

Available on LocatorInput, provided by the LocatorInputPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String? id, List<String> assetsIds, List<String> geofencesIds, List<String> triggersIds, DateTime? expiresAt, String? customizationId)?, {required TResult orElse()}) → TResult

Available on LocatorInput, provided by the LocatorInputPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save({required String apiToken, required Uri uri, void onResponse(String statusCode)?}) Future<LocatorApiResponse?>
save saves the locator input to the server It returns a LocatorApiResponse with the saved locator or errors if any
simulateLink simulates the locator link
toJson() Map<String, dynamic>
Serializes this LocatorInput to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String? id, List<String> assetsIds, List<String> geofencesIds, List<String> triggersIds, DateTime? expiresAt, String? customizationId)) → TResult

Available on LocatorInput, provided by the LocatorInputPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String? id, List<String> assetsIds, List<String> geofencesIds, List<String> triggersIds, DateTime? expiresAt, String? customizationId)?) → TResult?

Available on LocatorInput, provided by the LocatorInputPatterns extension

A variant of when that fallback to returning null

Operators

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

Static Properties

addGraphqlMutation String
addGraphqlMutation is the GraphQL mutation to add a locator It uses the Locator.graphqlFragment to get the locator data
no setter
editGraphqlMutation String
editGraphqlMutation is the GraphQL mutation to edit a locator It uses the Locator.graphqlFragment to get the locator data
no setter