value method

T value({
  1. bool? isDisabled,
  2. bool? isActive,
  3. bool? isHover,
  4. bool? isFocused,
})

Implementation

T value({
  bool? isDisabled,
  bool? isActive,
  bool? isHover,
  bool? isFocused,
}) {
  if (isDisabled == true) return disabled;
  if (isActive == true) return active;
  if (isHover == true) return hover;
  if (isFocused == true) return focus;
  return enabled;
}