TextStyle とtrueまたはfalseの変数textBoldがあります。この TextStyle で if を実装する方法は?
TextStyle(
color: Colors.white,
if ($textBold == true){
fontWeight: FontWeight.bold,
}
TextStyle とtrueまたはfalseの変数textBoldがあります。この TextStyle で if を実装する方法は?
TextStyle(
color: Colors.white,
if ($textBold == true){
fontWeight: FontWeight.bold,
}