Home > Back-end >  How can i resolve "The argument type 'Object' can't be assigned to the parameter
How can i resolve "The argument type 'Object' can't be assigned to the parameter

Time:01-23

Error: enter image description here

Error on this line:

Text( _selectedDate == null ? 'No Date Chosen!': DateFormat.yMd(_selectedDate),),

CodePudding user response:

Try this:

Text(
 _selectedDate == null ? 'No Date Chosen!' : DateFormat.yMd(_selectedDate).toString(),
),
  •  Tags:  
  • Related