PrivRuntimeConfig class abstract

Owner-death reconnect policy, mirroring priv.kit.core.PrivilegeConfig.

Changes are pushed to the connected server and apply to the next owner death. A reconnect flow that has already started keeps the values it captured when the owner died.

Available extensions
Annotations
  • @freezed

Constructors

PrivRuntimeConfig({required int followDeathDelayMillis, required bool activeReconnectOnOwnerDeath})
const
factory
PrivRuntimeConfig.fromMap(Map map)
Decodes the map sent by the Android side.
factory

Properties

activeReconnectOnOwnerDeath → bool
no setterinherited
copyWith → $PrivRuntimeConfigCopyWith<PrivRuntimeConfig>
Create a copy of PrivRuntimeConfig with the given fields replaced by the non-null parameter values.
no setterinherited
followDeathDelay → Duration
How long the server waits for the owner process to reconnect.
no setter
followDeathDelayMillis → int
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isDefault → bool
Whether the configuration still has its upstream defaults.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_PrivRuntimeConfig value)) → TResult

Available on PrivRuntimeConfig, provided by the PrivRuntimeConfigPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_PrivRuntimeConfig value)?) → TResult?

Available on PrivRuntimeConfig, provided by the PrivRuntimeConfigPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_PrivRuntimeConfig value)?, {required TResult orElse()}) → TResult

Available on PrivRuntimeConfig, provided by the PrivRuntimeConfigPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(int followDeathDelayMillis, bool activeReconnectOnOwnerDeath)?, {required TResult orElse()}) → TResult

Available on PrivRuntimeConfig, provided by the PrivRuntimeConfigPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
Encodes the configuration for the Android side.
toString() → String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(int followDeathDelayMillis, bool activeReconnectOnOwnerDeath)) → TResult

Available on PrivRuntimeConfig, provided by the PrivRuntimeConfigPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(int followDeathDelayMillis, bool activeReconnectOnOwnerDeath)?) → TResult?

Available on PrivRuntimeConfig, provided by the PrivRuntimeConfigPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) → bool
The equality operator.
inherited