Search constructor Null safety

Search(
  1. {required Dio dio,
  2. String? token,
  3. String? apiKey}
)

Implementation

Search({required this.dio, this.token, this.apiKey})
    : _authHeader = token != null ? 'Bearer $token' : null,
      _rest = SearchClient(dio);