isEqualTo method

bool isEqualTo(
  1. SettingItem<T> other
)

比较两个 SettingItem 是否相等

Implementation

bool isEqualTo(SettingItem<T> other) {
  return this.type == other.type &&
      this.text == other.text &&
      this.initialValue == other.initialValue &&
      this.startIcon == other.startIcon &&
      this.endIcon == other.endIcon &&
      listEquals(this.options, other.options);
}