AccountSession constructor

const AccountSession({
  1. required String account,
  2. required String clientSecret,
  3. required ConnectEmbeddedAccountSessionCreateComponents components,
  4. required DateTime expiresAt,
  5. 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,
});