2

TextStyle とtrueまたはfalseの変数textBoldがあります。この TextStyle で if を実装する方法は?

TextStyle(
    color: Colors.white,
    if ($textBold == true){
      fontWeight: FontWeight.bold,
    }
4

2 に答える 2