ShernovaPollConfig class

Runtime contract broadcast by the server in the token response's poll_config field. Older servers do not send this field; the SDK falls back to ShernovaPollConfig.defaults which preserves the pre-existing hardcoded values, so behaviour is identical when the field is absent.

Constructors

ShernovaPollConfig({required int pollIntervalMs, required int burstIntervalMs, required int confirmationWindowTicks, required int requestTimeoutMs, Map<String, bool> behaviorFlags = const {}})
const
ShernovaPollConfig.fromJson(Map<String, dynamic>? json)
Parses the poll_config object from the token response. Returns defaults when the field is missing or malformed, so a bad server response can never break an installed app.
factory

Properties

behaviorFlags → Map<String, bool>
Server-driven behavioral switches. Unknown keys are preserved as-is and read via flag; flags absent from the response read as false unless given an explicit fallback.
final
burstInterval → Duration
no setter
burstIntervalMs → int
final
confirmationWindowTicks → int
final
hashCode → int
The hash code for this object.
no setterinherited
pollInterval → Duration
no setter
pollIntervalMs → int
final
requestTimeout → Duration
no setter
requestTimeoutMs → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

flag(String name, {bool fallback = false}) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

defaults → const ShernovaPollConfig
Matches the historical hardcoded values (verify_phone_screen.dart and ShernovaClient.requestTimeout) so an absent field is a no-op.