IPLDNode constructor

IPLDNode({
  1. Kind? kind,
  2. bool? boolValue,
  3. Int64? intValue,
  4. double? floatValue,
  5. String? stringValue,
  6. List<int>? bytesValue,
  7. IPLDList? listValue,
  8. IPLDMap? mapValue,
  9. IPLDLink? linkValue,
  10. List<int>? bigIntValue,
})

Implementation

factory IPLDNode({
  Kind? kind,
  $core.bool? boolValue,
  $fixnum.Int64? intValue,
  $core.double? floatValue,
  $core.String? stringValue,
  $core.List<$core.int>? bytesValue,
  IPLDList? listValue,
  IPLDMap? mapValue,
  IPLDLink? linkValue,
  $core.List<$core.int>? bigIntValue,
}) {
  final result = create();
  if (kind != null) result.kind = kind;
  if (boolValue != null) result.boolValue = boolValue;
  if (intValue != null) result.intValue = intValue;
  if (floatValue != null) result.floatValue = floatValue;
  if (stringValue != null) result.stringValue = stringValue;
  if (bytesValue != null) result.bytesValue = bytesValue;
  if (listValue != null) result.listValue = listValue;
  if (mapValue != null) result.mapValue = mapValue;
  if (linkValue != null) result.linkValue = linkValue;
  if (bigIntValue != null) result.bigIntValue = bigIntValue;
  return result;
}