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');
}
if (properties['analyticsEnabled'] == null) {
properties['analyticsEnabled'] = false;
}
return properties['analyticsEnabled'];
}
Implementation
set analyticsEnabled(bool value) {
properties['analyticsEnabled'] = value;
return properties['analyticsEnabled'];
}