get method

  1. @override
Future get(
  1. String path, [
  2. String? apiKey
])
override

Implementation

@override
Future get(String path, [String? apiKey]) async {
  final response = await _dio.get(
    path,
    options: apiKey != null
        ? Options(
            headers: {
              'authorization':
                  'Basic ${base64Encode(utf8.encode('$apiKey:'))}',
            },
          )
        : null,
  );
  return response.data;
}