getUUID function

Future<String?> getUUID(
  1. String storageKey
)

Get the device uuid

Implementation

Future<String?> getUUID(String storageKey) async {
  String? uuid = await NyStorage.read(storageKey);
  if (uuid == null) {
    String uuId = _buildUUID();
    await _storeUUID(uuId, storageKey);
    return uuId;
  }
  return uuid;
}