analyticsEnabled property

bool analyticsEnabled

Implementation

bool get analyticsEnabled {
  // TODO(kenz): remove this in Feb 2022. See
  // https://github.com/flutter/devtools/issues/3264. The `enabled` property
  // has been replaced by `analyticsEnabled` for better naming.
  if (properties['enabled'] != null) {
    properties['analyticsEnabled'] = properties['enabled'];
    properties.remove('enabled');
  }

  return properties['analyticsEnabled'] =
      properties['analyticsEnabled'] == true;
}
void analyticsEnabled=(bool value)

Implementation

set analyticsEnabled(bool value) {
  properties['analyticsEnabled'] = value;
}