operator []= method

void operator []=(
  1. String key,
  2. dynamic value
)

Implementation

void operator []=(String key, value) {
  switch (key) {
    case 'crack_times_display':
      crack_times_display = value;
      break;
    case 'crack_times_seconds':
      crack_times_seconds = value;
      break;
    case 'score':
      score = value;
      break;
    default:
      throw Exception('Property $key not supported');
  }
}