launchAndRespond method

Future<void> launchAndRespond(
  1. void sendResponse()
)

Overridden by sub-classes that need to control when the response is sent during the launch process.

Implementation

Future<void> launchAndRespond(void Function() sendResponse) async {
  await launchImpl();
  sendResponse();
}