final String? dateString = ancestor.acquisitionDate != null //
? DateFormat("DD MMM YYYY").format(ancestor.acquisitionDate!)
: null;
make extension on DateTime with that DateFormat under some method name and it will be twice shorter
any other inline we used to ??=
How do you display codes like this?
Обсуждают сегодня