isPrivateName static method

bool isPrivateName(
  1. String name
)

Return true if the given name is visible only within the library in which it is declared.

Implementation

static bool isPrivateName(String name) => name.isNotEmpty && name[0] == "_";