use method

Offer use(
  1. List<LicenseUsecase> usecases, {
  2. List<String> destinations = const [],
})

Adds a LicenceUse to the Offer.

This method adds a new LicenseUse object to the uses array with the specified usecases and destinations properties, ensuring that the uses array is correctly initialized and avoiding any potential overrides.

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

Implementation

Offer use(List<LicenseUsecase> usecases,
    {List<String> destinations = const []}) {
  _uses.add(LicenseUse(usecases, destinations: destinations));
  return this;
}