getChannel method

PsdChannel? getChannel(
  1. int id
)

Implementation

PsdChannel? getChannel(int id) {
  for (var i = 0; i < channels.length; ++i) {
    if (channels[i].id == id) {
      return channels[i];
    }
  }
  return null;
}