SyncApiParams<R, P> class abstract

Абстрактный класс для реализации класса параметров для синхронных запросов с callback методами

R — тип результата, P — тип входных параметров.

Constructors

SyncApiParams({required P data, required void onAsync(Either<BaseException, R> result), void onSync(Either<BaseException, R> result)?, SyncApiRequestScope? scope})
const

Properties

data → P
Входные параметры запроса.
final
hashCode → int
The hash code for this object.
no setterinherited
onAsync → void Function(Either<BaseException, R> result)
Результат сети: данные или ошибка. Для вытесненного запроса не вызывается.
final
onSync → void Function(Either<BaseException, R> result)?
Сохранённые данные. Наличие обработчика включает чтение и запись кеша. Чтение с диска может быть асинхронным, несмотря на название обработчика.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → SyncApiRequestScope?
no setter

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