accessKey method

WidgetElement accessKey(
  1. String key, {
  2. bool? removeIf,
})
inherited

The accesskey global attribute provides a hint for generating a keyboard shortcut for the current element. Read more...

Implementation

WidgetElement accessKey(String key, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('accesskey', key);
    node.attrs!.add(attr);
  }
  return this;
}