set<T> method
Sets a value for a settings name. Values can only be of type: String, int, double, bool, DiveSettings, and List
Implementation
set<T>(String name, T value) {
if (!_validType(value)) throw UnsupportedError('value cannot be of type ${value.runtimeType}');
_settings[name] = value;
}