custom static method

Insertable<UserModel> custom(
  1. {Expression<int>? id,
  2. Expression<String>? name,
  3. Expression<String>? email,
  4. Expression<String>? password,
  5. Expression<int>? role}
)

Implementation

static Insertable<UserModel> custom({
  Expression<int>? id,
  Expression<String>? name,
  Expression<String>? email,
  Expression<String>? password,
  Expression<int>? role,
}) {
  return RawValuesInsertable({
    if (id != null) 'id': id,
    if (name != null) 'name': name,
    if (email != null) 'email': email,
    if (password != null) 'password': password,
    if (role != null) 'role': role,
  });
}