chooseNaming static method

Naming chooseNaming(
  1. String? name,
  2. Naming? naming
)

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);