SongCompanion.insert constructor

SongCompanion.insert({
  1. Value<int> id = const Value.absent(),
  2. required String name,
  3. required bool locked,
  4. required bool published,
  5. Value<String?> imagePath = const Value.absent(),
  6. Value<String?> description = const Value.absent(),
  7. Value<String?> note = const Value.absent(),
  8. Value<String?> youtubeCode = const Value.absent(),
  9. Value<String?> youtubeVideoInfo = const Value.absent(),
  10. required int albumId,
})

Implementation

SongCompanion.insert({
  this.id = const Value.absent(),
  required String name,
  required bool locked,
  required bool published,
  this.imagePath = const Value.absent(),
  this.description = const Value.absent(),
  this.note = const Value.absent(),
  this.youtubeCode = const Value.absent(),
  this.youtubeVideoInfo = const Value.absent(),
  required int albumId,
}) : name = Value(name),
     locked = Value(locked),
     published = Value(published),
     albumId = Value(albumId);