fromDropdownView method

DropdownViewController<T> fromDropdownView(
  1. DropdownView<T> view
)

Implementation

DropdownViewController<T> fromDropdownView(DropdownView<T> view) {
  super.fromTextView(view);
  selectedIndex = view.selectedIndex;
  items = view.items;

  /// DRAWABLE PROPERTIES
  leadingIcon = view.leadingIcon;
  leadingIconState = view.leadingIconState;
  leadingIconSize = view.leadingIconSize;
  leadingIconSizeState = view.leadingIconSizeState;
  leadingIconTint = view.leadingIconTint;
  leadingIconTintState = view.leadingIconTintState;
  leadingIconVisible = view.leadingIconVisible;

  trailingIcon = view.trailingIcon;
  trailingIconState = view.trailingIconState;
  trailingIconSize = view.trailingIconSize;
  trailingIconSizeState = view.trailingIconSizeState;
  trailingIconTint = view.trailingIconTint;
  trailingIconTintState = view.trailingIconTintState;
  trailingIconVisible = view.trailingIconVisible;

  trailingSelectedIcon = view.trailingSelectedIcon;
  trailingSelectedIconState = view.trailingSelectedIconState;
  trailingSelectedIconSize = view.trailingSelectedIconSize;
  trailingSelectedIconSizeState = view.trailingSelectedIconSizeState;
  trailingSelectedIconTint = view.trailingSelectedIconTint;
  trailingSelectedIconTintState = view.trailingSelectedIconTintState;
  trailingSelectedIconVisible = view.trailingSelectedIconVisible;

  return this;
}