AccountSession constructor
const
AccountSession({
- required String account,
- required String clientSecret,
- required ConnectEmbeddedAccountSessionCreateComponents components,
- required DateTime expiresAt,
- required bool livemode,
ConnectEmbeddedMethodAccountSessionCreateMethodAccountSession
An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded components. We recommend that you create an AccountSession each time you need to display an embedded component to your user. Do not save AccountSessions to your database as they expire relatively quickly, and cannot be used more than once. Related guide: [Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components)
Implementation
const AccountSession({
required this.account,
required this.clientSecret,
required this.components,
required this.expiresAt,
required this.livemode,
});