Flutter – A value of type 'Object' can't be assigned to a variable of type 'List<dynamic>'
I'm trying to use _showWindow function but I'm getting A value of type 'Object' can't be assigned to a variable of type 'List' error. void _addBook(BuildContext context) async { List<dynamic> result = await _showWindow(context, "Enter the book name") ?? [];…