PaylikeRequestBuilder<T> class
Null safety
PaylikeRequestBuilder provides a flexible way to add custom retry mechanism into the flow.
Constructors
-
PaylikeRequestBuilder(Future<
T> fn())
Properties
-
fn
↔ Future<
T> Function() -
Async function to execute
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- retryEnabled ↔ bool
-
Indicates if retry is enabled
read / write
-
retryHandler
↔ RetryHandler<
T> -
Handler to do retry
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
execute(
) → Future< T> - Executes the request.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
-
withDefaultRetry(
) → PaylikeRequestBuilder< T> - Enables default retry - backoff mechanism.
-
withRetry(
RetryHandler< T> retryHandler) → PaylikeRequestBuilder<T> - Receives a custom retry implementation and enables retry mechanism.
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited