view method

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

Implementation

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

  yield* response.handleError((_) {
    // do nothing
  });
}