specifyFirstUsefulState method

  1. @protected
void specifyFirstUsefulState({
  1. Map<String, dynamic> tags = const {},
  2. List<Reference> references = const [],
})

Creates a span with globalTracer from the start of load until now.

This span is intended to represent the time it takes for the module to finish asynchronously loading any necessary data and entering a state which is ready for user interaction.

Any tags or references specified will be added to this span.

Implementation

@protected
void specifyFirstUsefulState({
  Map<String, dynamic> tags = const {},
  List<Reference> references = const [],
}) =>
    specifyStartupTiming(
      StartupTimingType.firstUseful,
      tags: tags,
      references: references,
    );