TikiSdk class Null safety

The primary class for the tiki_sdk_dart library. Use this to create, get, and enforce LicenseRecords and TitleRecords.

Properties

address → String
Returns the in-use wallet address.
read-only
hashCode → int
The hash code for this object.
read-only, inherited
id → String
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

all(String ptr, {String? origin}) → List<LicenseRecord>
Returns all LicenseRecords for a ptr.
getLicense(String id) LicenseRecord?
Returns the LicenseRecord for an id or null if the license or corresponding title record is not found.
getTitle(String id) TitleRecord?
Returns the TitleRecord for an id or null if the record is not found.
guard(String ptr, List<LicenseUsecase> usecases, {String? origin, List<String>? destinations, dynamic onPass()?, dynamic onFail(String)?}) → bool
Guard against an invalid LicenseRecord for a List of usecases and destinations.
latest(String ptr, {String? origin}) LicenseRecord?
Returns the latest LicenseRecord for a ptr or null if the title or license records are not found.
license(String ptr, List<LicenseUse> uses, String terms, {String? origin, List<TitleTag> tags = const [], String? titleDescription, String? licenseDescription, DateTime? expiry}) → Future<LicenseRecord>
Create a new LicenseRecord.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
title(String ptr, {String? origin, List<TitleTag> tags = const [], String? description}) → Future<TitleRecord>
Create a new TitleRecord.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

init(String publishingId, String origin, KeyStorage keyStorage, String id, dynamic database, {int maxTransactions = 1, Duration blockInterval = const Duration(minutes: 1), String? customerAuth}) → Future<TikiSdk>
Returns a new initialized TikiSdk instance.
withId(String id, KeyStorage keyStorage) → Future<String>
Use before init to add a wallet address and keypair to the keyStorage for id.