getDate static method

String getDate(
  1. DateTime date
)

Implementation

static String getDate(DateTime date) => DateFormat('yyyy-MM-dd').format(date);