OfflineOperation<T extends DataModelMixin<T> > constructor
OfflineOperation<T extends DataModelMixin<T> > ({
- required DataRequestLabel label,
- required String httpRequest,
- required int timestamp,
- Map<
String, String> ? headers, - String? body,
- String? key,
- _OnSuccessGeneric<
T> ? onSuccess, - _OnErrorGeneric<
T> ? onError, - required RemoteAdapter<
T> adapter,
Implementation
OfflineOperation({
required this.label,
required this.httpRequest,
required this.timestamp,
this.headers,
this.body,
String? key,
this.onSuccess,
this.onError,
required this.adapter,
}) {
this.key = key ?? label.model?._key;
}