toggleClass method

NodeBuilder toggleClass(
  1. String className
)

Implementation

NodeBuilder toggleClass(String className) =>
    setClassesMapped((classes) => classes.contains(className)
        ? (classes..remove(className))
        : (classes..add(className)));