view method

  1. @override
Stream<List<int>> view({
  1. required String id,
  2. String? authorization,
  3. String? ifNoneMatch,
})
override

Implementation

@override
Stream<List<int>> view({
  required String id,
  String? authorization,
  String? ifNoneMatch,
}) async* {
  final response = await _client.request(
    method: 'GET',
    path: '/img/${id}',
    headers: {'authorization': authorization, 'if-none-match': ifNoneMatch},
  );

  yield* response.handleError((_) {
    // do nothing
  }, test: isTransportError);
}