getId property

String getId

The unique identifier of the Offer.

If an _id was not defined with the id method, a random UUID string will be generated and used as the _id.

Implementation

String get getId {
  _id ??= const Uuid().v4();
  return _id!;
}