LinkedInUserWidget constructor
const
LinkedInUserWidget({
- required ValueChanged<
UserSucceededAction> ? onGetUserProfile, - required String? redirectUrl,
- required String? clientId,
- required String? clientSecret,
- ValueChanged<
UserFailedAction> ? onError, - bool destroySession = false,
- PreferredSizeWidget? appBar,
- bool useVirtualDisplay = false,
- List<
Scope> scope = const [OpenIdScope(), EmailScope(), ProfileScope()], - 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,
});