read method

Future<String> read(
  1. dynamic url, {
  2. Map<String, String>? headers,
  3. Map<String, dynamic>? params,
})

Executes client.read with a new Client instance and closes it after it has been used.

Implementation

Future<String> read(
  url, {
  Map<String, String>? headers,
  Map<String, dynamic>? params,
}) {
  return _withClient((client) => client.read(
        url,
        headers: headers,
        params: params,
      ));
}