ApiRequest constructor Null safety

ApiRequest(
  1. {String? token,
  2. bool bypassAuth = false,
  3. String? userId}
)

Implementation

ApiRequest({
  // this.queryParams = const {},
  // this.body = const {},
  // this.headers = const {},
  // this.progress,
  // this.isMultipart = false,
  // this.baseUrl,
  this.token,
  this.bypassAuth = false,
  this.userId,
}) {
  userId = userId ?? state.userId;
}