workerHandle property Null safety

Future<String> workerHandle

A primary identifier that uniquely identifies the worker outside of HyperTrack. Example: email, phone number, database id It is usually obtained and set when the worker logs into the app. Set it to an empty string "" when the worker logs out of the app to un-bind the device from the worker and avoid unintentional tracking.

Implementation

static Future<String> get workerHandle async {
  return _invokeSdkMethod<Map<Object?, Object?>>(SdkMethod.getWorkerHandle)
      .then((value) {
    return deserializeWorkerHandle(value);
  });
}