isPrivateName static method

bool isPrivateName(
  1. String name
)

Returns true if the given name is visible only within the library in which it's declared.

Implementation

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