FailurePresenter class abstract final

Тонкий слой между Failure и UI: тексты для Snackbar / диалога.

Сообщения для пользователя по-прежнему из Failure.userMessage; заголовок диалога — короткий нейтральный вариант по Failure.logCategory (при необходимости замените в приложении своим FailurePresenter).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

dialogBody(Failure failure) → String
Основной текст диалога — то же, что и для snackbar.
dialogTitle(Failure failure) → String
Короткий заголовок диалога (английский ярлык категории).
snackbarMessage(Failure failure) → String
Текст для Snackbar / баннера (полное пользовательское сообщение).
technicalCode(Failure failure) → String
Стабильный код для подзаголовка / «Подробнее» / логов в UI.