bool toggle(String token, [ bool force ])

Source

bool toggle(String token, [bool force]) {
  if (force != null) {
    return _blink.BlinkDOMTokenList.instance
        .toggle_Callback_2_(this, token, force);
  }
  return _blink.BlinkDOMTokenList.instance.toggle_Callback_1_(this, token);
}