Constant constructor

Constant({
  1. NullValue? nullValue,
  2. bool? boolValue,
  3. Int64? int64Value,
  4. Int64? uint64Value,
  5. double? doubleValue,
  6. String? stringValue,
  7. List<int>? bytesValue,
  8. @Deprecated('This field is deprecated.') Duration? durationValue,
  9. @Deprecated('This field is deprecated.') Timestamp? timestampValue,
})

Implementation

factory Constant({
  $2.NullValue? nullValue,
  $core.bool? boolValue,
  $fixnum.Int64? int64Value,
  $fixnum.Int64? uint64Value,
  $core.double? doubleValue,
  $core.String? stringValue,
  $core.List<$core.int>? bytesValue,
  @$core.Deprecated('This field is deprecated.') $0.Duration? durationValue,
  @$core.Deprecated('This field is deprecated.') $1.Timestamp? timestampValue,
}) {
  final result = create();
  if (nullValue != null) result.nullValue = nullValue;
  if (boolValue != null) result.boolValue = boolValue;
  if (int64Value != null) result.int64Value = int64Value;
  if (uint64Value != null) result.uint64Value = uint64Value;
  if (doubleValue != null) result.doubleValue = doubleValue;
  if (stringValue != null) result.stringValue = stringValue;
  if (bytesValue != null) result.bytesValue = bytesValue;
  if (durationValue != null) result.durationValue = durationValue;
  if (timestampValue != null) result.timestampValue = timestampValue;
  return result;
}