ChatsCompanion.insert constructor

ChatsCompanion.insert({
  1. required String id,
  2. Value<String?> avatar = const Value.absent(),
  3. Value<String?> name = const Value.absent(),
  4. Value<String> members = const Value.absent(),
  5. Value<int> kindIndex = const Value.absent(),
  6. Value<bool> isHidden = const Value.absent(),
  7. Value<String?> muted = const Value.absent(),
  8. Value<String?> directLink = const Value.absent(),
  9. Value<PreciseDateTime> createdAt = const Value.absent(),
  10. Value<PreciseDateTime> updatedAt = const Value.absent(),
  11. Value<String> lastReads = const Value.absent(),
  12. Value<PreciseDateTime?> lastDelivery = const Value.absent(),
  13. Value<String?> firstItem = const Value.absent(),
  14. Value<String?> lastItem = const Value.absent(),
  15. Value<String?> lastReadItem = const Value.absent(),
  16. Value<int> unreadCount = const Value.absent(),
  17. Value<int> totalCount = const Value.absent(),
  18. Value<String?> ongoingCall = const Value.absent(),
  19. Value<double?> favoritePosition = const Value.absent(),
  20. Value<int> membersCount = const Value.absent(),
  21. required String ver,
  22. Value<String?> lastItemCursor = const Value.absent(),
  23. Value<String?> lastReadItemCursor = const Value.absent(),
  24. Value<String?> recentCursor = const Value.absent(),
  25. Value<String?> favoriteCursor = const Value.absent(),
  26. Value<int> rowid = const Value.absent(),
})

Implementation

ChatsCompanion.insert({
  required String id,
  this.avatar = const Value.absent(),
  this.name = const Value.absent(),
  this.members = const Value.absent(),
  this.kindIndex = const Value.absent(),
  this.isHidden = const Value.absent(),
  this.muted = const Value.absent(),
  this.directLink = const Value.absent(),
  this.createdAt = const Value.absent(),
  this.updatedAt = const Value.absent(),
  this.lastReads = const Value.absent(),
  this.lastDelivery = const Value.absent(),
  this.firstItem = const Value.absent(),
  this.lastItem = const Value.absent(),
  this.lastReadItem = const Value.absent(),
  this.unreadCount = const Value.absent(),
  this.totalCount = const Value.absent(),
  this.ongoingCall = const Value.absent(),
  this.favoritePosition = const Value.absent(),
  this.membersCount = const Value.absent(),
  required String ver,
  this.lastItemCursor = const Value.absent(),
  this.lastReadItemCursor = const Value.absent(),
  this.recentCursor = const Value.absent(),
  this.favoriteCursor = const Value.absent(),
  this.rowid = const Value.absent(),
})  : id = Value(id),
      ver = Value(ver);