Value constructor

Value({
  1. NullValue? nullValue,
  2. double? numberValue,
  3. String? stringValue,
  4. bool? boolValue,
  5. Struct? structValue,
  6. ListValue? listValue,
})

Implementation

factory Value({
  NullValue? nullValue,
  $core.double? numberValue,
  $core.String? stringValue,
  $core.bool? boolValue,
  Struct? structValue,
  ListValue? listValue,
}) {
  final $result = create();
  if (nullValue != null) {
    $result.nullValue = nullValue;
  }
  if (numberValue != null) {
    $result.numberValue = numberValue;
  }
  if (stringValue != null) {
    $result.stringValue = stringValue;
  }
  if (boolValue != null) {
    $result.boolValue = boolValue;
  }
  if (structValue != null) {
    $result.structValue = structValue;
  }
  if (listValue != null) {
    $result.listValue = listValue;
  }
  return $result;
}