/**
  * Return the selection value.
  *
  * @return string|null
  */
 public function value()
 {
     $options = $this->object->getOptions();
     if (!($key = $this->object->getValue())) {
         return null;
     }
     return trans(array_get($options, $key));
 }
 /**
  * Return the selection value.
  *
  * @return string|null
  */
 public function value()
 {
     $options = $this->object->getOptions();
     if (($key = $this->object->getValue()) === null) {
         return null;
     }
     if (!str_contains($value = array_get($options, $key), '::')) {
         return $value;
     }
     return trans($value);
 }