5
final PsiElementFactory factory = JavaPsiFacade.getInstance(project).getElementFactory();
PsiStatement useMemoStatement = instance.createStatementFromText("int a = plus(b + c);", null);

in java we can create a statement like above. i cloned flutter plugin and i'm adding a new intention(alt + enter) function, but idon't know how to create new statement in dart.

Ahmadreza Moodi
  • 463
  • 4
  • 10

1 Answers1

3

this question answered here How to create dart statement with dart plugin? #4329 thanks to flutter plugin team ♥

Ahmadreza Moodi
  • 463
  • 4
  • 10