addTags static method

Future<void> addTags(
  1. Map<String, String> tags, {
  2. Function? callback,
})

Add tags. tags key-value pairs callback is an optional function that will be called with result of adding tags.

Implementation

static Future<void> addTags(Map<String, String> tags,
    {Function? callback}) async {
  if(!Platform.isAndroid) return;
  if (await (_channel.invokeMethod("Pushe.addTags", {"tags": tags}))) {
    callback?.call();
  }
  return;
}