addVisitor method

bool addVisitor(
  1. FormeFieldVisitor<T> visitor
)
inherited

add visitor

true if visitor not exists

Implementation

bool addVisitor(FormeFieldVisitor<T> visitor) {
  if (!_visitors.contains(visitor)) {
    _visitors.add(visitor);
    return true;
  }
  return false;
}