startTransaction method

Future<void> startTransaction({
  1. required String actionId,
  2. Map<String, String>? extras,
  3. String? theme,
  4. String? header,
  5. String? initialProcessingMessage,
  6. int finalMsgDisplayTime = 5000,
  7. bool? showUserStepDescriptions,
})

Start a transaction with the provided parameters. actionId is the id of the action to be performed. extras is a map of extra parameters to be sent to the action. theme is the theme of the transaction. header is the header of the transaction. initialProcessingMessage is the message to be displayed while the transaction is being processed. finalMsgDisplayTime is the time to display the final message. showUserStepDescriptions is a flag to show the user step descriptions.

Implementation

Future<void> startTransaction({
  required String actionId,
  Map<String, String>? extras,
  String? theme,
  String? header,
  String? initialProcessingMessage,
  int finalMsgDisplayTime = 5000,
  bool? showUserStepDescriptions,
}) async {
  await _methodChannel.invokeMethod("HoverStartATransaction", {
    "actionId": actionId,
    "extras": extras ?? {},
    "theme": theme,
    "header": header,
    "initialProcessingMessage": initialProcessingMessage,
    "finalMsgDisplayTime": finalMsgDisplayTime,
  });
}