enableTimelineLogging property Null safety

bool enableTimelineLogging

Current state of HTTP request logging from all HttpClients to the developer timeline.

Default is false.

Implementation

static bool get enableTimelineLogging => _enableTimelineLogging;
void enableTimelineLogging= (bool value)

Enable logging of HTTP requests from all HttpClients to the developer timeline.

Default is false.

Implementation

static set enableTimelineLogging(bool value) {
  final enabled = valueOfNonNullableParamWithDefault<bool>(value, false);
  if (enabled != _enableTimelineLogging) {
    postEvent('HttpTimelineLoggingStateChange', {
      'isolateId': Service.getIsolateID(Isolate.current),
      'enabled': enabled,
    });
  }
  _enableTimelineLogging = enabled;
}