ICredential constructor Null safety

ICredential(
  1. {required String userId,
  2. required String userCode,
  3. required String userRole,
  4. required String accessToken,
  5. String? refreshToken,
  6. AuthError? error}
)

Implementation

ICredential({
  required this.userId,
  required this.userCode,
  required this.userRole,
  required this.accessToken,
  this.refreshToken,
  this.error,
});