addTag method

Future addTag (
  1. dynamic tagName
)

Implementation

Future<dynamic> addTag(tagName) async {
  if (tagName == null || tagName.trim().length == 0) {
    throw new Exception(
        "tagName is invalid. Please provide a valid name for tag");
  }
  return _channel.invokeMethod("addTags", <String, dynamic>{
    'tags': [tagName]
  });
}