startMoment abstract method

void startMoment(
  1. String name, {
  2. String? identifier,
  3. bool allowScreenshot = false,
  4. Map<String, String>? properties,
})

Starts a moment.

Moments are used for encapsulating particular activities within the app, such as the user adding an item to their shopping cart. The length of time a moment takes to execute is recorded, and a screenshot can be taken if a moment is 'late'.

Implementation

void startMoment(
  String name, {
  String? identifier,
  bool allowScreenshot = false,
  Map<String, String>? properties,
});