fields method

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

Implementation

@override
List<NUIEntField> fields() {
  return [
    NUIEntField<NUIThemeConfig>(name: "colorCodes", type: NUIEntType.MAP, setter: (data, value) => data._colorCodes = asMapOfType<String>(value), getter: (data) => data._colorCodes),
    NUIEntField<NUIThemeConfig>(name: "lightTheme", type: NUIEntType.OBJECT, setter: (data, value) => data._lightTheme = asObject<NUIColorTheme>(NUIColorThemeEnt(), value)!, getter: (data) => data._lightTheme),
    NUIEntField<NUIThemeConfig>(name: "darkTheme", type: NUIEntType.OBJECT, setter: (data, value) => data._darkTheme = asObject<NUIColorTheme>(NUIColorThemeEnt(), value)!, getter: (data) => data._darkTheme),
    NUIEntField<NUIThemeConfig>(name: "startWithDark", type: NUIEntType.BOOLEAN, setter: (data, value) => data._startWithDark = value, getter: (data) => data._startWithDark),
  ];
}