getItems method
Inquiry method that can be used to read the "Item List" specified for this Subscription.
Note that if the single-item-constructor was used, this method will return an array of length 1 containing such item.
Lifecycle This method can only be called if the Subscription has been initialized with an "Item List".
Returns the "Item List" to be subscribed to through the server, or null if the Subscription was initialized with an "Item Group" or was not initialized at all.
Implementation
List<String>? getItems() {
return _items?.toList();
}