copyWith method

NodesCompanion copyWith({
  1. Value<String>? nodeId,
  2. Value<int>? role,
  3. Value<String?>? groupId,
  4. Value<int>? lastSeen,
  5. Value<int>? hopCount,
  6. Value<String?>? displayName,
  7. Value<int?>? batteryLevel,
  8. Value<bool>? hasInternetAccess,
  9. Value<String?>? metadata,
  10. Value<int>? rowid,
})

Implementation

NodesCompanion copyWith({
  Value<String>? nodeId,
  Value<int>? role,
  Value<String?>? groupId,
  Value<int>? lastSeen,
  Value<int>? hopCount,
  Value<String?>? displayName,
  Value<int?>? batteryLevel,
  Value<bool>? hasInternetAccess,
  Value<String?>? metadata,
  Value<int>? rowid,
}) {
  return NodesCompanion(
    nodeId: nodeId ?? this.nodeId,
    role: role ?? this.role,
    groupId: groupId ?? this.groupId,
    lastSeen: lastSeen ?? this.lastSeen,
    hopCount: hopCount ?? this.hopCount,
    displayName: displayName ?? this.displayName,
    batteryLevel: batteryLevel ?? this.batteryLevel,
    hasInternetAccess: hasInternetAccess ?? this.hasInternetAccess,
    metadata: metadata ?? this.metadata,
    rowid: rowid ?? this.rowid,
  );
}