addApplicationData method

void addApplicationData(
  1. String key,
  2. dynamic value
)

Adds app-specific value under key.

Use this to store your own data in the protocol. It is copied to all deployments of the protocol and can be read with getApplicationData.

Implementation

void addApplicationData(String key, dynamic value) {
  _data.applicationData ??= {};
  _data.applicationData?[key] = value;
}