Api constructor

Api({
  1. required String baseUrl,
  2. required String accessToken,
  3. required String refreshToken,
  4. String serverCertificate = '',
  5. List<String> ignorePaths = const [],
  6. required dynamic onTokenRefreshed(
    1. String newToken
    ),
  7. int? connectTimeout,
  8. int? receiveTimeout,
  9. Map<String, dynamic>? header,
})

Implementation

Api({
  required this.baseUrl,
  required this.accessToken,
  required this.refreshToken,
  this.serverCertificate = '',
  this.ignorePaths = const [],
  required this.onTokenRefreshed,
  this.connectTimeout,
  this.receiveTimeout,
  this.header,
});