Constant constructor
Constant({
- NullValue? nullValue,
- bool? boolValue,
- Int64? int64Value,
- Int64? uint64Value,
- double? doubleValue,
- String? stringValue,
- List<
int> ? bytesValue, - @Deprecated('This field is deprecated.') Duration? durationValue,
- @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;
}