setTo method

Widget setTo(
  1. dynamic other
)

assign value(int, Score, Data or Condition)

Implementation

Widget setTo(dynamic other) {
  if (other is int) return set(other);
  if (other is Score) return setEqual(other);
  if (other is Data) return setToData(other);
  if (other is Condition) return setToCondition(other);
  if (other is Command) return setToResult(other);
  if (other is File) return setToFunction(other);
  if (other is Widget) return setToWidget(other);
  throw ('Please use either a Score, Data, Condition, Command or an Int in the operator >>');
}