linkedin_login library

Classes

AuthorizationCodeResponse
This class will store code, state, access token and error if there is it State represents unique set of characters that will be used for security reasons Code that you will exchange for access token later Error property will be filled up if flow catch any of errors
AuthorizationFailedAction
AuthorizationSucceededAction
EmailAddressScope
ExceptionAction
LinkedAction
LinkedInAuthCodeWidget
This class is responsible to fetch all information for user after we get token and code from LinkedIn Please look at documentation for minimum SDK version if you are using useVirtualDisplay by default library is using Hybrid Composition which requires minSdkVersion to be 19
LinkedInButtonStandardWidget
Class will generate standard flutter button, but with properties you can modify look of the button Also, you don't need to use this widget, you can use standard button widget
LinkedInDeepEmail
Helper children subclass
LinkedInDeepEmailHandle
Helper children subclass
LinkedInLocalInfo
Helper children subclass
LinkedInPersonalInfo
Helper children subclass
LinkedInPreferredLocal
Helper children subclass
LinkedInProfileEmail
Helper children subclass
LinkedInProfilePicture
Helper children subclass
LinkedInTokenObject
When you get authorization code, you need to exchange to get access token Expires in is time, when your access token will be invalid
LinkedInUserModel
Class which has responsibility to keep all users information on one place Note: You will not get an profile URL with this model. The library is still not supporting this, but as work around you should call this API https://api.linkedin.com/v2/me?projection=(id,profilePicture(displayImage~:playableStreams))&oauth2_access_token=HERE where you will of course replace HERE with a access token which you can find inside token property firstName & lastName & email will contain information which user has setup on linkedIn page while userId is LinkedIn generated field same as values inside token
LinkedInUserWidget
This class is responsible to fetch all information for user after we get token and code from LinkedIn Please look at documentation for minimum SDK version if you are using useVirtualDisplay by default library is using Hybrid Composition which requires minSdkVersion to be 19
LiteProfileScope
ProjectionParameters
Currently supported projection options
Scope
Gives you ability to introduce scope whatever you think its needed.
UserFailedAction
UserSucceededAction

Functions

getFirstInListFromJson(Map<String, dynamic>? json) String?
Helper function to parse first element from json If there is no element, or element is not string it will return you null