AuthenticationProvider constructor

AuthenticationProvider({
  1. Event<AuthenticationProviderAuthenticationSessionsChangeEvent>? onDidChangeSessions,
  2. Future getSessions([
    1. List<String>?
    ])?,
  3. Future createSession(
    1. List<String>
    )?,
  4. Future removeSession(
    1. String
    )?,
})

Implementation

factory AuthenticationProvider({
  _i3.Event<_i3.AuthenticationProviderAuthenticationSessionsChangeEvent>?
      onDidChangeSessions,
  _i2.Future<_i2.dynamic> Function([_i2.List<_i2.String>?])? getSessions,
  _i2.Future<_i2.dynamic> Function(_i2.List<_i2.String>)? createSession,
  _i2.Future<_i2.dynamic> Function(_i2.String)? removeSession,
}) =>
    AuthenticationProvider._(
      onDidChangeSessions: onDidChangeSessions ?? _i6.undefined,
      getSessions: getSessions == null ? null : _i5.allowInterop(getSessions),
      createSession:
          createSession == null ? null : _i5.allowInterop(createSession),
      removeSession:
          removeSession == null ? null : _i5.allowInterop(removeSession),
    );