# Session list

Canonical page: https://docs.ovok.com/flutter-sdk/reference/ovok_flutter/session-list

{/* Generated by scripts/generate_reference.dart; do not edit. */}

## SessionList [#sessionlist]

```dart
class SessionList extends StatefulWidget
```

Lists active sessions and revokes the other sessions on request.

### Constructors [#constructors]

#### SessionList.new [#sessionlistnew]

```dart
SessionList({
  required Ovok ovok,
  AuthTranslations translations = defaultAuthTranslations,
  void Function(Object)? onError,
  Key? key,
})
```

Creates a session list backed by [`ovok`](#sessionlistovok).

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `ovok` | `Ovok` | required named |  |
| `translations` | `AuthTranslations` | named | `defaultAuthTranslations` |
| `onError` | `void Function(Object)?` | named |  |
| `key` | `Key?` | named |  |

### Properties [#properties]

#### SessionList.ovok [#sessionlistovok]

```dart
final Ovok ovok
```

The client used to list and revoke sessions.

#### SessionList.translations [#sessionlisttranslations]

```dart
final AuthTranslations translations
```

Labels to use for this list.

#### SessionList.onError [#sessionlistonerror]

```dart
final void Function(Object)? onError
```

Called when listing or revoking sessions fails.
