MineMainSettingFunctionItem.ets 808 Bytes

@Observed
export class MineMainSettingFunctionItem {
  imgSrc?:Resource   // 图标
  title?:string      // 标题
  subTitle?:string   // 副标题
  type?:number     // 数据类型 0默认箭头类型,1右侧switch按钮类型
  switchState?:boolean // 右侧switch按钮状态
  itemType?:string //条目类型


  constructor(imgSrc:Resource|null,title:string|null,subTitle:string|null,type:number|null,switchState:boolean|null,itemType:string){
    if (imgSrc) {
      this.imgSrc = imgSrc
    }
    if (title) {
      this.title = title
    }
    if (subTitle) {
      this.subTitle = subTitle
    }
    if (type != null) {
      this.type = type
    }
    if (switchState != null) {
      this.switchState = switchState
    }
    if (itemType != null) {
      this.itemType = itemType
    }

  }
}