syncServerFallbackCopy function
String
syncServerFallbackCopy(
- WalletLocalizations l10n,
- SyncServerFallback fallback, {
- required String host,
The copy for a SyncServerFallback — shared by the sync sheet's Server
row banner and the picker's own banner (one wording, two places).
Implementation
String syncServerFallbackCopy(
WalletLocalizations l10n,
SyncServerFallback fallback, {
required String host,
}) => switch (fallback) {
SyncServerFallback_ChoiceNotOffered() =>
l10n.walletSyncServerFallbackNotOffered(host),
// FR-29 E12: a remembered unencrypted (http://) server under the app's
// private path — said, never silent, and the choice is kept.
SyncServerFallback_ChoiceRefusedByTransport() =>
l10n.walletSyncServerFallbackRefusedByTransport(host),
SyncServerFallback_ChoiceUnreadable() ||
SyncServerFallback_Unknown() => l10n.walletSyncServerFallbackUnreadable(host),
};