Response<T extends Object> constructor
- int requestCode = 0,
- bool? available,
- bool? cancel,
- bool? complete,
- bool? error,
- bool? failed,
- bool? internetError,
- bool? loading,
- bool? nullable,
- bool? paused,
- bool? stopped,
- bool? successful,
- bool? timeout,
- bool? valid,
- T? data,
- List<
T> ? backups, - List<
T> ? ignores, - List<
T> ? result, - double? progress,
- Status? status,
- String? exception,
- String? message,
- dynamic feedback,
- dynamic snapshot,
Constructs a Response object with optional initial values.
requestCode: The request code associated with the response.
available
: Indicates if the response is available.
cancel
: Indicates if the response has been cancelled.
complete
: Indicates if the response is complete.
error
: Indicates if an error occurred.
failed
: Indicates if the operation failed.
internetError
: Indicates if there's an internet error.
loading
: Indicates if the response is currently loading.
nullable
: Indicates if the response can be null.
paused
: Indicates if the response is paused.
stopped
: Indicates if the response is stopped.
successful
: Indicates if the operation was successful.
timeout
: Indicates if there was a timeout.
valid
: Indicates if the response is valid.
data
: The data associated with the response.
backups
: List of backup data.
ignores
: List of ignored data.
result
: List of results.
progress
: Progress value.
status
: Status of the response.
exception
: Exception message.
message
: Additional message.
feedback: Feedback data.
snapshot: Snapshot data.
Implementation
Response({
this.requestCode = 0,
bool? available,
bool? cancel,
bool? complete,
bool? error,
bool? failed,
bool? internetError,
bool? loading,
bool? nullable,
bool? paused,
bool? stopped,
bool? successful,
bool? timeout,
bool? valid,
T? data,
List<T>? backups,
List<T>? ignores,
List<T>? result,
double? progress,
Status? status,
String? exception,
String? message,
this.feedback,
this.snapshot,
}) : _available = available,
_cancel = cancel,
_complete = complete,
_error = error,
_failed = failed,
_internetError = internetError,
_loading = loading,
_nullable = nullable,
_paused = paused,
_stopped = stopped,
_successful = successful,
_timeout = timeout,
_valid = valid,
_data = data,
_backups = backups,
_ignores = ignores,
_result = result,
_progress = progress,
_status = status,
_exception = exception,
_message = message;