Pref constructor

Pref(
  1. {required String prefKey,
  2. dynamic defVal,
  3. bool enabled = true,
  4. bool visible = true,
  5. String? dependancy,
  6. required int type,
  7. dynamic function(
      )?,
    1. Map<int, String>? listItems,
    2. String? label,
    3. String? description,
    4. int? format,
    5. int? max,
    6. int? min}
    )

    Implementation

    Pref(
        {required this.prefKey,
        this.defVal,
        this.enabled = true,
        this.visible = true,
        this.dependancy,
        required this.type,
        this.function,
        Map<int, String>? listItems,
        String? label,
        String? description,
        this.format,
        this.max,
        this.min}) {
      this.listItems = listItems ?? {};
      this.label = label ?? prefKey;
      this.description = description ?? "";
    }