computeChannel function

Future<Channel> computeChannel(
  1. String channelId
)

Used to not block the UI isolate.

Implementation

Future<Channel> computeChannel(String channelId) async {
  YoutubeExplode yt = YoutubeExplode();
  return yt.channels.get(channelId);
}