isDisabled property

bool get isDisabled

Whether the button should be disabled.

Implementation

bool get isDisabled {
  return isBusy || (disableWhenInvalid && hasValidationErrors);
}