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;
}