Function: projectile-flutter-project-p
projectile-flutter-project-p is a byte-compiled function defined in
projectile.el.
Signature
(projectile-flutter-project-p &optional DIR)
Documentation
Check if a project is a Flutter project.
That's a Dart project whose pubspec.yaml depends on the Flutter SDK.
When DIR is specified it checks DIR's project, otherwise
it acts on the current project.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-flutter-project-p (&optional dir)
"Check if a project is a Flutter project.
That's a Dart project whose `pubspec.yaml' depends on the Flutter SDK.
When DIR is specified it checks DIR's project, otherwise
it acts on the current project."
(let ((pubspec (projectile-expand-root "pubspec.yaml" dir)))
(and (projectile-file-exists-p pubspec)
(with-temp-buffer
(insert-file-contents pubspec)
(and (re-search-forward "^[ \t]*sdk:[ \t]*flutter[ \t]*$" nil t) t)))))