disabled method

Button disabled(
  1. bool boolean
)

This attribute prevents the user from interacting with the button: it cannot be pressed or focused. Read more...

Implementation

Button disabled(bool boolean) {
  if (boolean && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('disabled', '');
    node.attrs!.add(attr);
  }
  return this;
}