Channels constructor Null safety

Channels(
  1. {required Dio dio,
  2. String? token,
  3. String? apiKey}
)

Implementation

Channels({required this.dio, this.token, this.apiKey})
    : _authHeader = token != null ? 'Bearer $token' : null,
      _rest = ChannelClient(dio);