whereIs method Null safety

Future<WhereIs?> whereIs(
  1. String id
)

Implementation

Future<WhereIs?> whereIs(String id) async {
  final response = await get("/bucket/whereis/$id");
  if (response.status.hasError) {
    return null;
  }
  return WhereIs.fromJson(response.body);
}