submitApiCall method

  1. @override
Future<void> submitApiCall(
  1. Map<String, dynamic> data
)
override

Implementation

@override
Future<void> submitApiCall(Map<String, dynamic> data) async {
  await LogbotSetupApiManager.device.setLicense(
      LicenseToken(token: controller.text),
      dryrun: true,
      uuidToken: LogbotSetupEnv().deviceId);
  await Future.delayed(Duration(seconds: LogbotSetupEnv.submitDelay));
  widget.onSuccess(controller.text);
}