how to create a new statement in dart with intellij Dart plugin

131 Views Asked by At
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.

1

There are 1 best solutions below

0
On BEST ANSWER

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