setDefaultValue method

void setDefaultValue()

Implementation

void setDefaultValue() {
  //  Log.i("setDefaultValue()");

  //icon triangle
  iconDropdown ??= Icon(Icons.arrow_drop_down, size: iconSize );

  underlineColor ??= Colors.transparent;

  //error
  // errorColor ??= Colors.red;
  errorTextStyle = const TextStyle(
      color: Colors.redAccent ,
      fontWeight: FontWeight.w500,
      fontSize: 14
  );

  errorOutlineDropdownDropdown ??= BoarderHelper.cardView(
      colorBackground: Colors.transparent,
      radiusSize: 8,
      colorLine: Colors.redAccent
  );

  //positon dropdown
  /**
      "There should be exactly one item with [DropdownButton]'s value: One. \nEither zero or 2 or more [DropdownMenuItem]s were detected with the same value"
   */
  // dropdownValue = SpinnerView.key_position_hint;

  textDirection ??= LangFastor.getTextDirection();
}