state property

IBState state

Implementation

IBState get state {
  if (enabled && onClick != null) {
    return IBState.enabled;
  } else {
    return IBState.disabled;
  }
}