Value constructor

Value({
  1. Value_Type? type,
  2. bool? bool_2,
  3. double? num,
  4. String? str,
  5. Iterable<Value>? arr,
  6. Map<String, Value>? obj,
})

Implementation

factory Value({
  Value_Type? type,
  $core.bool? bool_2,
  $core.double? num,
  $core.String? str,
  $core.Iterable<Value>? arr,
  $core.Map<$core.String, Value>? obj,
}) {
  final $result = create();
  if (type != null) {
    $result.type = type;
  }
  if (bool_2 != null) {
    $result.bool_2 = bool_2;
  }
  if (num != null) {
    $result.num = num;
  }
  if (str != null) {
    $result.str = str;
  }
  if (arr != null) {
    $result.arr.addAll(arr);
  }
  if (obj != null) {
    $result.obj.addAll(obj);
  }
  return $result;
}