isPrivateFileName function

bool isPrivateFileName(
  1. String filePath
)

Checks if the provided filePath is a private file (starts with an underscore).

Implementation

bool isPrivateFileName(String filePath) {
  final fileName = getBaseName(filePath);
  return fileName.startsWith('_');
}