【问题标题】:Flutter static usage and performance?Flutter static usage and performance?
【发布时间】: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


    【解决方案1】:
    【解决方案2】:
    猜你喜欢
    • 2020-10-15
    • 2021-10-26
    • 1970-01-01
    • 2022-09-05
    • 2022-12-19
    • 1970-01-01
    • 2022-12-02
    • 2015-05-19
    • 2020-10-13
    相关资源
    最近更新 更多