Response<T extends Object> constructor
Response<T extends Object> ({})
Implementation
Response({
this.requestCode = 0,
T? data,
List<T>? backups,
List<T>? ignores,
List<T>? result,
double? progress,
Status? status,
String? error,
String? message,
this.feedback,
this.snapshot,
}) : _data = data,
_backups = backups,
_ignores = ignores,
_result = result,
_progress = progress,
_error = error,
_message = message,
_status = status ??= (data != null || result != null)
? Status.ok
: (error ?? '').isNotEmpty
? Status.error
: null;