get method Null safety

Future<String> get(
  1. String url,
  2. {bool readCache = true,
  3. bool writeCache = true,
  4. Duration? ttl,
  5. Map<String, String> headers = const {},
  6. String defaultCharset(
    1. List<int>
    )?,
  7. String forcedCharset(
    1. List<int>
    )?}
)

Implementation

Future<String> get(
  String url, {
  bool readCache = true,
  bool writeCache = true,
  Duration? ttl,
  Map<String, String> headers = const {},
  String Function(List<int>)? defaultCharset,
  String Function(List<int>)? forcedCharset,
}) =>
    getUri(Uri.parse(url),
        headers: headers,
        readCache: readCache,
        writeCache: writeCache,
        ttl: ttl,
        defaultCharset: defaultCharset,
        forcedCharset: forcedCharset);