How to get the if the text is displayed on bold with selenium

I have a pdf document like this: \<div class=**"cs6C976429"** style="width:671px;height:18px;line-height:17px;margin-top:98px;margin-left:94px;position:absolute;text-align:left;vertical-align:top;"\> \<nobr\>INFORMATIONBOLD\</nobr\>\</div\> \<style type="text/css"\> .cs85480F5E {color:#000000 !important;background-color:transparent !important;border-left-style: none !important;border-top-style: none !important;border-right-style: none !important;border-bottom-style: none !important;font-family:’Times New Roman’ !important; font-size:13px !important; font-weight:normal !important; font-style:normal !important; !important;} .cs8B56BD64 {color:#000000 !important;background-color:transparent !important;border-left-style: none !important;border-top-style: none !important;border-right-style: none !important;border-bottom-style: none !important;font-family:’Times New Roman’ !important; font-size:15px !important; font-weight:bold !important; font-style:normal… Read More How to get the if the text is displayed on bold with selenium

Error: Method invocation is not a constant expression

Error: Method invocation is not a constant expression. color: Colors.black.withOpacity(0.6), i get this error when i try run this: body: ListView.builder( itemCount: 15, itemBuilder: (context, i) => const ListTile( title: Text("Bitcoin", style: TextStyle( fontWeight: FontWeight.w500, fontSize: 24, )), subtitle: Text("\$20000", style: TextStyle( color: Colors.grey.withOpacity(0.6), //error in this line fontWeight: FontWeight.w700, fontSize: 14, )), ), ),… Read More Error: Method invocation is not a constant expression