TagInputNotifier constructor

TagInputNotifier(
  1. TagField widget
)

Creates a new TagInputNotifier with the given widget.

Initializes the tag list with the TagField.initialTags if provided.

Example:

final notifier = TagInputNotifier(TagField(
  initialTags: ['flutter', 'dart'],
  onTagsChanged: (tags) => print('Tags: $tags'),
));

Implementation

TagInputNotifier(this.widget) {
  _tags = List.from(widget.initialTags);
}