copyWith abstract method

  1. @useResult
ServerSideSession copyWith({
  1. UuidValue? id = const _is.$UndefinedUuidValue(),
  2. UuidValue? authUserId,
  3. AuthUser? authUser = const _UndefinedServerSideSession$authUser(),
  4. Set<String>? scopeNames,
  5. DateTime? createdAt,
  6. DateTime? lastUsedAt,
  7. DateTime? expiresAt = const _is.$UndefinedDateTime(),
  8. Duration? expireAfterUnusedFor = const _is.$UndefinedDuration(),
  9. ByteData? sessionKeyHash,
  10. ByteData? sessionKeySalt,
  11. String? method,
})

Returns a shallow copy of this ServerSideSession with some or all fields replaced by the given arguments.

Implementation

@_is.useResult
ServerSideSession copyWith({
  _is.UuidValue? id = const _is.$UndefinedUuidValue(),
  _is.UuidValue? authUserId,
  _ivyervu7.AuthUser? authUser = const _UndefinedServerSideSession$authUser(),
  Set<String>? scopeNames,
  DateTime? createdAt,
  DateTime? lastUsedAt,
  DateTime? expiresAt = const _is.$UndefinedDateTime(),
  Duration? expireAfterUnusedFor = const _is.$UndefinedDuration(),
  _idt.ByteData? sessionKeyHash,
  _idt.ByteData? sessionKeySalt,
  String? method,
});