date static method

String date(
  1. DateTime d
)

Implementation

static String date(DateTime d) => DateFormat('dd MMM, yyyy').format(d);