将javascript转换为dart syntex

萨鲁亚先生

我们如何将javascript代码转换为flutter代码。

就像我们在javascript中有一个代码

let hideName = true
let name = "testing"
if(!hideName){
    console.log('hiden name:',name)
}
阿里·雷曼(Ali Rehman)

您的意思是要求将javascript代码转换为dart语言语法。

bool hideName = true;
string name = "testing";
if(hideName != true){
    print('hiden name:',name);
}

您还可以检查此链接https://www.w3adda.com/dart-tutorial/dart-boolean

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章