findDeviceValue method
Implementation
dynamic findDeviceValue(AFThemeID id) {
if(id == AFUIThemeID.brightness) {
return this.brightnessValue;
} else if(id == AFUIThemeID.alwaysUse24HourFormat) {
return this.alwaysUse24HourFormatValue;
} else if(id == AFUIThemeID.textScaleFactor) {
return this.textScaleFactorValue;
} else if(id == AFUIThemeID.locale) {
return this.localeValue;
} else if(id == AFUIThemeID.physicalSize) {
return this.physicalSize;
}
throw AFException("Unknown device theme value: $id");
}