reward method

Offer reward(
  1. Image reward
)

Defines the image that represents the Offer.

This method defines the image that will be used to illustrate the Offer.

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

Implementation

Offer reward(Image reward) {
  _reward = reward;
  return this;
}