startTransaction method
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,
});
}