payloadId property

int get payloadId

Get a new random, payload id.

Implementation

int get payloadId {
  var rng = Random();
  final date = (DateTime.now().millisecondsSinceEpoch * pow(10, 3)).toInt();
  final extra = (rng.nextDouble() * pow(10, 3)).floor();
  return date + extra;
}