getChannelFromId method Null safety
- String channelId
Get a channel by its ID
Returns Channel
Arguments:
channelId
ID of the Youtube Channel that is being queried
Implementation
@override
Future<Channel> getChannelFromId(String channelId) async {
final Response response =
await get(path: '${_Constants.channelsPath}/$channelId');
return Channel.fromJson(response.body);
}