custom static method
- {Expression<
int> ? id, - Expression<
String> ? name, - Expression<
String> ? email, - Expression<
String> ? password, - 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,
});
}