setTag method

Future<void> setTag({
  1. required dynamic tag,
  2. required dynamic value,
})

Set the tag with a key and a value, if a tag with that key already exists its value is replaced by the new value. @param tag The tag. @param value The value of the tag.

Implementation

Future<void> setTag({
  required tag,
  required value,
}) async {
  return setTags(tags: {tag: value});
}