custom static method

Insertable<Student> custom({
  1. Expression<int>? id,
  2. Expression<String>? studentId,
  3. Expression<String>? name,
})

Implementation

static Insertable<Student> custom({
  Expression<int>? id,
  Expression<String>? studentId,
  Expression<String>? name,
}) {
  return RawValuesInsertable({
    if (id != null) 'id': id,
    if (studentId != null) 'student_id': studentId,
    if (name != null) 'name': name,
  });
}