isDartFilePath method

bool isDartFilePath(
  1. dynamic dartEntryPoint
)

Returns true if dartEntryPoint is a String and a File path with a '.dart' extension.

Implementation

bool isDartFilePath(dynamic dartEntryPoint) {
  return dartEntryPoint is String &&
      !dartEntryPoint.contains(filePathReservedChars) &&
      dartEntryPoint.endsWith('.dart');
}