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.
this question answered here How to create dart statement with dart plugin? #4329 thanks to flutter plugin team ♥