chooseNaming static method
Picks a Naming based on an initial name
and naming
.
Implementation
static Naming chooseNaming(String? name, Naming? naming) =>
naming ??
((name != null && name.isNotEmpty)
? Naming.isUnpreferred(name)
? Naming.mergeable
: Naming.renameable
: Naming.unnamed);