fields method

  1. @override
List<NUIEntField> fields()
override

Implementation

@override
List<NUIEntField> fields() {
  return [
    NUIEntField<NUIConditionCompare>(name: "value1", type: NUIEntType.STRING, setter: (data, value) => data.value1 = value, getter: (data) => data.value1),
    NUIEntField<NUIConditionCompare>(name: "value2", type: NUIEntType.STRING, setter: (data, value) => data.value2 = value, getter: (data) => data.value2),
    NUIEntField<NUIConditionCompare>(name: "comparator", type: NUIEntType.STRING, setter: (data, value) => data.comparator = value, getter: (data) => data.comparator),
    NUIEntField<NUIConditionCompare>(name: "value1Raw", type: NUIEntType.OBJECT, setter: (data, value) => data.value1Raw = asObject(NUIConditionValueEnt(), value), getter: (data) => data.value1Raw),
    NUIEntField<NUIConditionCompare>(name: "value2Raw", type: NUIEntType.OBJECT, setter: (data, value) => data.value2Raw = asObject(NUIConditionValueEnt(), value), getter: (data) => data.value2Raw),
  ];
}