a method
Add a new section containing an anchore link of url
and label text
to the Para instance.
The bold
flag can be set to true to make the anchor text bold.
allows chaining.
Implementation
Para a(String text,String urlParm,{bool bold = false}) {
this._list.add(
TextSpan(
text:text,
style:TextStyle(color:Colors.blue,fontWeight:(bold?FontWeight.bold:FontWeight.normal)),
//recognizer: TapGestureRecognizer()
//..onTap = () async {
//final url = urlParm;
//if (await canLaunch(urlParm)) {
// await launch(
// url,
// //forceSafariVC: false,
// );
//}
//},
)
);
return this;
}