channels property

void channels=(List<Channel> channels)

Replaces the previously loaded channels with the passed channels.

Implementation

set channels(List<Channel> channels) {
  if (value.isSuccess) {
    final currentValue = value.asSuccess;
    value = currentValue.copyWith(items: channels);
  } else {
    value = PagedValue(items: channels);
  }
}