when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult sendLevel(
    1. String address,
    2. dynamic level,
    3. dynamic target,
    4. int remaining,
    5. int timestamp,
    ),
  2. required TResult sendRaw(
    1. String address,
    2. dynamic raw,
    3. dynamic target_raw,
    4. int timestamp,
    ),
  3. required TResult getState(
    1. String address,
    2. dynamic level,
    3. dynamic target,
    4. String? status,
    5. int? remaining,
    6. int timestamp,
    ),
  4. required TResult toggle(
    1. String address,
    2. dynamic level,
    3. dynamic target,
    4. int remaining,
    5. int timestamp,
    ),
  5. required TResult magicConfig(
    1. String address,
    2. int io,
    3. int index,
    4. int value,
    5. int correlation,
    6. int timestamp,
    ),
  6. required TResult setScenario(
    1. String node,
    2. int io,
    3. int scenario_id,
    4. int command,
    5. bool is_active,
    6. int level,
    7. int transition,
    8. int duration,
    9. int start_at,
    10. int days_in_week,
    11. int correlation,
    12. int? timestamp,
    ),
  7. required TResult setEpoch(
    1. String node,
    2. int io,
    3. int epoch,
    4. int command,
    5. int time_zone,
    6. int correlation,
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(String address, dynamic level, dynamic target, int remaining, int timestamp) sendLevel,
  required TResult Function(String address, dynamic raw, dynamic target_raw, int timestamp) sendRaw,
  required TResult Function(
          String address, dynamic level, dynamic target, String? status, int? remaining, int timestamp)
      getState,
  required TResult Function(String address, dynamic level, dynamic target, int remaining, int timestamp) toggle,
  required TResult Function(String address, int io, int index, int value, int correlation, int timestamp) magicConfig,
  required TResult Function(String node, int io, int scenario_id, int command, bool is_active, int level,
          int transition, int duration, int start_at, int days_in_week, int correlation, int? timestamp)
      setScenario,
  required TResult Function(String node, int io, int epoch, int command, int time_zone, int correlation) setEpoch,
}) =>
    throw _privateConstructorUsedError;