Flutter Error: The argument type 'DateTime?' can't be assigned to the parameter type 'DateTime'
Error: The argument type 'DateTime?' can't be assigned to the parameter type 'DateTime'. @override Widget build(BuildContext context) { final formatter = LastUpdatedDateFormatter( lastUpdated: _endpointsData != null ? _endpointsData.values[Endpoint.cases]!.date : null, );