LinkedInUserWidget constructor

const LinkedInUserWidget({
  1. required ValueChanged<UserSucceededAction>? onGetUserProfile,
  2. required String? redirectUrl,
  3. required String? clientId,
  4. required String? clientSecret,
  5. ValueChanged<UserFailedAction>? onError,
  6. bool destroySession = false,
  7. PreferredSizeWidget? appBar,
  8. bool useVirtualDisplay = false,
  9. List<Scope> scope = const [OpenIdScope(), EmailScope(), ProfileScope()],
  10. Key? key,
})

Client state parameter needs to be unique range of characters - random one

Implementation

const LinkedInUserWidget({
  required this.onGetUserProfile,
  required this.redirectUrl,
  required this.clientId,
  required this.clientSecret,
  this.onError,
  this.destroySession = false,
  this.appBar,
  this.useVirtualDisplay = false,
  this.scope = const [
    OpenIdScope(),
    EmailScope(),
    ProfileScope(),
  ],
  super.key,
});