getBullets property

List<Bullet> getBullets

An array of Bullet objects that describe the data usage permissions included in this Offer, to be shown in the pre-built UI.

Each bullet provides a concise description of how the user's data will be used under this Offer.

It contains a text property which describes the data usage and an isUsed property which indicates whether the data is being used or not.

It is recommended to use the bullet method to manage the Offer bullets. This method adds a new Bullet object to the _bullets List with the specified text and usage status, ensuring that the bullets are correctly initialized and avoiding any potential overrides.

Additionally, this method returns the Offer object to enable convenient chaining of method calls during offer initialization. For example:

offer
 .bullet("Your data will be used to personalize your experience", true)
 .bullet("Your data will be shared with other companies", false)

It is important to provide clear and accurate descriptions of data usage in the bullets to help users understand how their data will be used under this Offer. It will be shown in the pre-built UI.

Implementation

List<Bullet> get getBullets => _bullets;