deleteRuleStringForDeleteRule static method Null safety
- DeleteRule rule
Returns string representation of DeleteRule.
Implementation
static String? deleteRuleStringForDeleteRule(DeleteRule rule) {
switch (rule) {
case DeleteRule.cascade:
return "cascade";
case DeleteRule.nullify:
return "nullify";
case DeleteRule.restrict:
return "restrict";
case DeleteRule.setDefault:
return "default";
}
}