looksLikeAppId function

bool looksLikeAppId(
  1. String value
)

True when value is a reverse-DNS app id (bundle id or package), not a folder path.

Implementation

bool looksLikeAppId(String value) =>
    !value.startsWith('~') &&
    !value.startsWith('.') &&
    !value.contains('/') &&
    _appIdPattern.hasMatch(value) &&
    !Directory(value).existsSync();