canHandleFile static method

bool canHandleFile(
  1. String type,
  2. String filePath
)

Check if a generator can handle a specific file extension for the given type

Implementation

static bool canHandleFile(String type, String filePath) {
  final generator = _generators[type];
  if (generator == null) return false;

  final extension = path.extension(filePath);
  return generator.canHandle(extension);
}