authTypeToError static method

String authTypeToError(
  1. dynamic error
)

Implementation

static String authTypeToError(error) {
  switch (error) {
    case LinkedInAuthErrorType.userCancelledLogin:
      return 'user_cancelled_login';
    case LinkedInAuthErrorType.userCancelledAuthorize:
      return 'user_cancelled_authorize';
    default:
      return 'Other';
  }
}