performRequest method

  1. @override
WorkResponse performRequest(
  1. WorkRequest request
)
override

Perform a single WorkRequest, and return a WorkResponse.

Implementation

@override
WorkResponse performRequest(WorkRequest request) {
  requests.add(request);
  if (printMessage != null) print(printMessage);
  return _responses.removeFirst();
}