set<T> method

dynamic set<T>(
  1. String name,
  2. T value
)

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;
}