startFlow static method
Starts an AppFlow with the given name
.
The name
must not be an empty string. It should be unique and not exceed 150 characters,
ignoring leading and trailing spaces.
Duplicate name
s will terminate the older AppFlow with the termination reason recorded as
'force abandon end reason'.
The method will only execute if APM is enabled, the feature is active, and the SDK has been initialized.
Implementation
static Future<void> startFlow(String name) async {
if (name.isNotEmpty) {
return _host.startFlow(name.trim());
}
}