RequestOptions constructor Null safety

RequestOptions(
  1. {int? version = 1,
  2. Map<String, String>? query,
  3. dynamic data,
  4. Duration timeout = const Duration(seconds: 20),
  5. String clientId = 'dart-1',
  6. String method = 'GET',
  7. bool form = false,
  8. Map<String, String>? formFields}
)

Implementation

RequestOptions({
  this.version = 1,
  this.query,
  this.data,
  this.timeout = const Duration(seconds: 20),
  this.clientId = 'dart-1',
  this.method = 'GET',
  this.form = false,
  this.formFields,
});