startView method

void startView(
  1. String key, [
  2. String? name,
  3. Map<String, Object?> attributes = const {}
])

Notifies that the View identified by key starts being presented to the user. This view will show as name in the RUM explorer, and defaults to key if it is not provided. You can also attach custom attributes, who's values must be supported by StandardMessageCodec.

The key passed here must match the key passed to stopView later.

Implementation

void startView(String key,
    [String? name, Map<String, Object?> attributes = const {}]) {
  name ??= key;
  wrap('rum.startView', logger, attributes, () {
    return _platform.startView(key, name!, attributes);
  });
}