getUses property
List<LicenseUse>
get
getUses
An array of LicenseUse that apply to this Offer. Each LicenseUse specifies how the TitleRecord can be used under this Offer.
This use method adds a new LicenseUse object to the _uses
List with
the specified usecases and destinations properties, ensuring that the _uses
List 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.
For example:
offer
.use(LicenceUsecase.support(), destinations: ["*.example.com"])
.use(LicenceUsecase.add_attribution(), destinations: ["*.myco.com"])
Implementation
List<LicenseUse> get getUses => _uses;