customItemTypes property

String customItemTypes

Implementation

String get customItemTypes => _getAttribute<String>(kCustomItemTypes, '');
void customItemTypes=(String? x)

A array of hashes that maps an item title substring matcher to a color:

{ name: "Announcements", color: "#FFFFFF" }

Valid substring matchers are any string that could be used as an item title.

A color is the hexadecimal value of a valid color e.g. #FFFFFF Valid colors values are #e8f6df, #e0f7ff, #e6e2fd, #ffe0e8, #ffedd1, #cfcfcf, #eaebeb, and #ffffff

pass null to remove key from attributes

Implementation

set customItemTypes(String? x) => (x == null)
    ? _attributes.remove(kCustomItemTypes)
    : _attributes[kCustomItemTypes] = x;