title static method

Future<TitleRecord> title(
  1. String ptr, {
  2. List<TitleTag> tags = const [],
  3. String? description = null,
  4. String? origin = null,
})

Creates a new TitleRecord, or retrieves an existing one.

Use this function to create a new TitleRecord for a given Pointer Record (ptr), or retrieve an existing one if it already exists.

  • Parameters:
    • ptr: The Pointer Record that identifies the data stored in your system, similar to a foreign key. Learn more about selecting good pointer records at https://docs.mytiki.com/docs/selecting-a-pointer-record.
    • origin: An optional override of the default origin specified in initTikiSdkAsync. Follow a reverse-DNS syntax, i.e. com.myco.myapp.
    • tags: A list of metadata tags included in the TitleRecord describing the asset, for your use in record search and filtering. Learn more about adding tags at https://docs.mytiki.com/docs/adding-tags.
    • description: A short, human-readable, description of the TitleRecord as a future reminder.
  • Returns: The created or retrieved TitleRecord.

Implementation

static Future<TitleRecord> title(String ptr,
    {List<TitleTag> tags = const [],
    String? description = null,
    String? origin = null}) async {
  _throwIfNotInitialized();
  return instance._core!
      .title(ptr, tags: tags, description: description, origin: origin);
}