generatePushTokenHash function

String generatePushTokenHash(
  1. String pushToken
)

Generates the push token hash which is just sha512.

Implementation

String generatePushTokenHash(String pushToken) => sha512.convert(utf8.encode(pushToken)).toString();