【发布时间】:2022-12-02 13:42:33
【问题描述】:
at my company, my teammate said that\"in Flutter, static usage is very harmful for memory. You shouldn\'t use static variables too much.\"
After that, I have searched the internet, but I couldn\'t find satisfaction answer. So, I just wonder that if I use static value like at the below code lines, will it increase memory usage or reduce performance? Many thanks.
class {
static final String name=\"asd\";
static final String surname=\"ajskandkanjsd\";
static final Int age=123;
static final isStudent=false;
static final String email=\"asked@gmail.com\";
static final Int password=1231234;
}
标签: flutter performance dart class static