startChecklist static method

Future<void> startChecklist({
  1. required String outboundId,
  2. required bool showBackButton,
})

startChecklist

Starts a new checklist for the given outbound.

Available Platforms

Web, Android, iOS

Implementation

static Future<void> startChecklist(
    {required String outboundId, required bool showBackButton}) async {
  if (!kIsWeb && !io.Platform.isAndroid && !io.Platform.isIOS) {
    debugPrint(
      'outboundId is not available for current operating system',
    );
    return;
  }

  await _channel.invokeMethod('startChecklist',
      {'outboundId': outboundId, 'showBackButton': showBackButton});
}