LicenseUse class
Define explicit uses for an asset. LicenseUses are extremely helpful in programmatic search and enforcement of your LicenseRecords.
usecases explicitly define HOW an asset may be used. Use either our list of common enumerations or define your own using LicenseUsecase.custom
destinations define WHO can use an asset. destinations narrow down usecases to a set of URLs, categories of companies, or more. Use ECMAScript Regex to specify flexible and easily enforceable rules.
Constructors
-
LicenseUse(List<
LicenseUsecase> usecases, {List<String> ? destinations}) -
LicenseUse.fromMap(Map<
String, dynamic> map) -
Construct a LicenseUse from a
map
.
Properties
-
destinations
↔ List<
String> ? -
Destinations explicitly define WHERE an asset may be used.
Destinations can be either explicit (
'https://mytiki.com'
) or ECMAScript Compatible Regex ('\\.mytiki\\.com'
)getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
usecases
↔ List<
LicenseUsecase> -
Usecases explicitly define HOW an asset may be used.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map - Converts this to Map
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited