itemType property

String itemType

Implementation

String get itemType => _getAttribute<String>(kItemType, '');
void itemType=(String? x)

There are 4 possible values:

  • song: The item is a song

  • header: The item is a header

  • media: The item is a piece of media

  • item: The default item type

This value can only be set when an item is created. The only value that you can pass is header. If no value is passed then item will be used. To create a media item you'll attach a video media to the item, and to create a song item, you'll attach a song.

pass null to remove key from attributes

Implementation

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