skip to Main Content

Android Studio – A value of type 'bool?' can't be assigned to a variable of type 'bool'. flutter

bool isChecked = false; class _TasksTileState extends State<TasksTile> { bool isChecked = false; @override Widget build(BuildContext context) { print('$isChecked is the value of isChecked'); return CheckboxListTile( title: Text('this is the Task 1.',style: TextStyle( decoration: isChecked? TextDecoration.lineThrough: null, ),), value: isChecked,…

VIEW QUESTION
Back To Top
Search