toValue static method

Value toValue(
  1. dynamic x
)

Implementation

static Value toValue(dynamic x) => x is Value ? x : Value(x.toDouble());