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> -
assetsIdsis the list of assets associated with the locatorgetter/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?
-
customizationIdis the ID of the registered app that will act as a customization for this locatorgetter/setter pairinherited - expiresAt ↔ DateTime?
-
expiresAtis the expiration date of the locator, can be null for non-expiring locatorsgetter/setter pairinherited -
geofencesIds
↔ List<
String> -
geofencesIdsis the list of geofences associated with the locatorgetter/setter pairinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
idis the UUIDv4 identifier of the locatorgetter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
triggersIds
↔ List<
String> -
triggersIdsis the list of triggers associated with the locatorgetter/setter pairinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_LocatorInput value)) → TResult -
Available on LocatorInput, provided by the LocatorInputPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_LocatorInput value)?) → TResult? -
Available on LocatorInput, provided by the LocatorInputPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_LocatorInput value)?, {required TResult orElse()}) → TResult -
Available on LocatorInput, provided by the LocatorInputPatterns extension
A variant ofmapthat fallback to returningorElse. -
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 ofwhenthat fallback to anorElsecallback. -
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(
{RegisteredApp? customization}) → String - 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
Aswitch-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 ofwhenthat fallback to returningnull
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