getDeviceId method

Future<String> getDeviceId()

Get the cached or generated device ID

Implementation

Future<String> getDeviceId() async {
  return _cachedDeviceId ?? await _getOrCreateDeviceId();
}